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 f06f9bb commit c9af192Copy full SHA for c9af192
src/bootstrap/config.rs
@@ -824,15 +824,10 @@ impl Config {
824
};
825
}
826
827
- if config.llvm_thin_lto {
828
- // If we're building with ThinLTO on, we want to link to LLVM
829
- // shared, to avoid re-doing ThinLTO (which happens in the link
830
- // step) with each stage.
831
- assert_ne!(
832
- llvm.link_shared,
833
- Some(false),
834
- "setting link-shared=false is incompatible with thin-lto=true"
835
- );
+ if config.llvm_thin_lto && llvm.link_shared.is_none() {
+ // If we're building with ThinLTO on, by default we want to link
+ // to LLVM shared, to avoid re-doing ThinLTO (which happens in
+ // the link step) with each stage.
836
config.llvm_link_shared = true;
837
838
0 commit comments