diff --git a/library/Cargo.toml b/library/Cargo.toml index a1f64a4a3237..2a2c015811b8 100644 --- a/library/Cargo.toml +++ b/library/Cargo.toml @@ -59,6 +59,8 @@ rustflags = ["-Cpanic=abort"] # in the user's profile. [profile.dist] inherits = "release" +codegen-units = 1 +debug = 1 # "limited" rustflags = [ # Unconditionally embedding bitcode is necessary for when users enable LTO. # Until Cargo can rebuild the standard library with the user profile's `lto` diff --git a/src/ci/run.sh b/src/ci/run.sh index b486f0525f40..583ad4461bc3 100755 --- a/src/ci/run.sh +++ b/src/ci/run.sh @@ -120,8 +120,6 @@ if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then if [ "$DEPLOY_ALT" != "" ] && isLinux; then RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --debuginfo-level=2" - else - RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --debuginfo-level-std=1" fi if [ "$NO_LLVM_ASSERTIONS" = "1" ]; then