]> git.proxmox.com Git - rustc.git/blobdiff - src/ci/run.sh
New upstream version 1.66.0+dfsg1
[rustc.git] / src / ci / run.sh
index 9a247fb60a8ee0535c20ecc4d5ab0f4e135c8ab4..9d98ce22498cd439ae65ff236309a6387f10bfeb 100755 (executable)
@@ -69,6 +69,11 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-units-std=1"
 # space required for CI artifacts.
 RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --dist-compression-formats=xz"
 
+# Enable the `c` feature for compiler_builtins, but only when the `compiler-rt` source is available.
+if [ "$EXTERNAL_LLVM" = "" ]; then
+  RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.optimized-compiler-builtins"
+fi
+
 if [ "$DIST_SRC" = "" ]; then
   RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-dist-src"
 fi