rust: enable use of prebuilt llvm toolchain
authorTianling Shen <cnsztl@immortalwrt.org>
Sun, 19 Mar 2023 06:20:40 +0000 (14:20 +0800)
committerTianling Shen <cnsztl@gmail.com>
Thu, 23 Mar 2023 18:08:47 +0000 (02:08 +0800)
llvm-bpf is not ready for generic usage, so use prebuilt llvm toolchain
provided by the rust project to speedup build (~1hour faster).

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
lang/rust/Makefile

index 1c47fbf76efa344433d9f4b98b337b4020f921c7..3cdb633ab9be425cef4c28b9b3cd11c1dcda05dc 100644 (file)
@@ -66,13 +66,11 @@ HOST_CONFIGURE_ARGS = \
        --datadir=$(CARGO_HOME)/share \
        --mandir=$(CARGO_HOME)/man \
        --dist-compression-formats=xz \
-       --enable-llvm-link-shared \
-       --enable-llvm-plugins \
        --enable-missing-tools \
-       --enable-ninja \
        --disable-sanitizers \
        --release-channel=stable \
        --enable-cargo-native-static \
+       --set=llvm.download-ci-llvm=true \
        $(TARGET_CONFIGURE_ARGS)
 
 define Host/Uninstall