Skip to content

Commit 9a96876

Browse files
committed
no -Bsymbolic for mac; no static-libstdc++ for windows
1 parent 7458af9 commit 9a96876

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/bootstrap/native.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,13 @@ impl Step for Llvm {
176176

177177
// For distribution we want the LLVM tools to be *statically* linked to libstdc++
178178
if builder.config.llvm_tools_enabled {
179-
cfg.define("CMAKE_EXE_LINKER_FLAGS", "-Wl,-Bsymbolic -static-libstdc++");
179+
if !target.contains("windows") {
180+
if target.contains("apple") {
181+
cfg.define("CMAKE_EXE_LINKER_FLAGS", "-static-libstdc++");
182+
} else {
183+
cfg.define("CMAKE_EXE_LINKER_FLAGS", "-Wl,-Bsymbolic -static-libstdc++");
184+
}
185+
}
180186
}
181187

182188
if target.contains("msvc") {

0 commit comments

Comments
 (0)