We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7458af9 commit 9a96876Copy full SHA for 9a96876
src/bootstrap/native.rs
@@ -176,7 +176,13 @@ impl Step for Llvm {
176
177
// For distribution we want the LLVM tools to be *statically* linked to libstdc++
178
if builder.config.llvm_tools_enabled {
179
- cfg.define("CMAKE_EXE_LINKER_FLAGS", "-Wl,-Bsymbolic -static-libstdc++");
+ 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
186
}
187
188
if target.contains("msvc") {
0 commit comments