Note that cross-language LTO requires lld in addition to clang
authorMatt Corallo <git@bluematt.me>
Tue, 28 Feb 2023 06:58:25 +0000 (06:58 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 6 Mar 2023 22:48:29 +0000 (22:48 +0000)
genbindings.sh

index 5f2c26f13566d06d6953cd6095de950e07cbb466..731ff9a55f65e14c0ce3d52f67df207958bb9f1c 100755 (executable)
@@ -571,5 +571,5 @@ else
        if [ "$CFLAGS_aarch64_apple_darwin" != "" ]; then
                RUSTFLAGS="$BASE_RUSTFLAGS -C embed-bitcode=yes -C lto -C target-cpu=apple-a14" CARGO_PROFILE_RELEASE_LTO=true cargo build $CARGO_BUILD_ARGS -v --release --target aarch64-apple-darwin
        fi
-       echo "WARNING: Building with cross-language LTO is not avilable without clang-$RUSTC_LLVM_V"
+       echo "WARNING: Building with cross-language LTO is not avilable without clang-$RUSTC_LLVM_V and lld-$RUSTC_LLVM_V"
 fi