Fix rust build by adding LLVM includes to prefix

This commit is contained in:
Wildan M 2026-04-13 16:58:35 +07:00
parent ae8967ed5a
commit ff58a55353
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -418,8 +418,10 @@ ifeq ($(PREFIX_USE_UPSTREAM_RUST_COMPILER),1)
cp -r "$(LLVM_TARGET)/stage/usr/". "$@.partial"
endif
cp -r "$(LLVM_TARGET)/stage.runtime/usr/". "$@.partial"
cp -r "$(LLVM_TARGET)/stage.dev/usr/". "$@.partial"
cp -r "$(CLANG_TARGET)/stage/usr/". "$@.partial"
cp -r "$(LLD_TARGET)/stage/usr/". "$@.partial"
rm -rf "$@.partial/lib/"*.a
mv "$@.partial" "$@"
# no longer needed, delete build files to save disk space
rm -rf $(LLVM_TARGET) $(CLANG_TARGET) $(LLD_TARGET)