We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ef529 commit 8e67307Copy full SHA for 8e67307
src/bootstrap/native.rs
@@ -174,6 +174,11 @@ impl Step for Llvm {
174
cfg.define("LLVM_LINK_LLVM_DYLIB", "ON");
175
}
176
177
+ // For distribution we want the LLVM tools to be *statically* linked to libstdc++
178
+ if builder.config.ship_llvm_tools {
179
+ cfg.define("CMAKE_EXE_LINKER_FLAGS", "-Wl,-Bsymbolic -static-libstdc++");
180
+ }
181
+
182
if target.contains("msvc") {
183
cfg.define("LLVM_USE_CRT_DEBUG", "MT");
184
cfg.define("LLVM_USE_CRT_RELEASE", "MT");
0 commit comments