Skip to content

Commit

Permalink
Re-enable optimized compiler builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Aug 6, 2024
1 parent b13e021 commit 7220a96
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ clean_storage() {
build() {
set_llvm_build_cfg LLVM_USE_SYMLINKS TRUE
set_rust_cfg llvm.static-libstdcpp true
set_rust_cfg llvm.ldflags "\"-s -static-libgcc -static\""
set_rust_cfg llvm.ldflags '"-s -static-libgcc -static"'
set_rust_cfg dist.include-mingw-linker true

cd rust
Expand Down
3 changes: 1 addition & 2 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ set_rust_cfg() {
}

print_rust_cfg() {
set_rust_cfg llvm.build-config "{ $LLVM_BUILD_CFG }"
echo $RUST_CFG
echo $RUST_CFG "'--set=llvm.build-config={ $LLVM_BUILD_CFG }'"
}

# url sha
Expand Down
1 change: 0 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ tools = [
"rustfmt",
"rust-analyzer-proc-macro-srv",
]
optimized-compiler-builtins = false
cargo-native-static = true

[install]
Expand Down

0 comments on commit 7220a96

Please sign in to comment.