diff --git a/build_sysroot/Cargo.toml b/build_sysroot/Cargo.toml index d4873602d4d..725c0b40d89 100644 --- a/build_sysroot/Cargo.toml +++ b/build_sysroot/Cargo.toml @@ -13,3 +13,6 @@ alloc_system = { path = "./alloc_system" } [patch.crates-io] rustc-std-workspace-core = { path = "./sysroot_src/src/tools/rustc-std-workspace-core" } compiler_builtins = { path = "./compiler_builtins" } + +[profile.release] +debug = true diff --git a/build_sysroot/build_sysroot.sh b/build_sysroot/build_sysroot.sh index 33da1e3dd67..2e332be7e60 100755 --- a/build_sysroot/build_sysroot.sh +++ b/build_sysroot/build_sysroot.sh @@ -6,6 +6,7 @@ cd $(dirname "$0") cargo clean rm Cargo.lock 2>/dev/null || true rm -r sysroot 2>/dev/null || true +rm -r target 2>/dev/null || true # FIXME find a better way to get the target triple unamestr=`uname`