diff options
| author | Mateusz Mikuła <mati865@gmail.com> | 2021-10-23 14:34:33 +0200 |
|---|---|---|
| committer | Mateusz Mikuła <mati865@gmail.com> | 2021-10-23 15:51:22 +0200 |
| commit | a076f2b9b48af47a2f85f579069424d88d850915 (patch) | |
| tree | 403d7127e697d4f0a5bbffcbf14c43fa3f41b7fb /compiler/rustc_llvm/build.rs | |
| parent | cf708558b758f4473c4f35986d9492ace7bf906d (diff) | |
| download | rust-a076f2b9b48af47a2f85f579069424d88d850915.tar.gz rust-a076f2b9b48af47a2f85f579069424d88d850915.zip | |
Repace use of `static_nobundle` with `native_link_modifiers`
This fixes warning when building Rust and running tests: ``` warning: library kind `static-nobundle` has been superseded by specifying `-bundle` on library kind `static`. Try `static:-bundle` warning: `rustc_llvm` (lib) generated 2 warnings (1 duplicate) ```
Diffstat (limited to 'compiler/rustc_llvm/build.rs')
| -rw-r--r-- | compiler/rustc_llvm/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index 36a6d2cc33a..943ce589c4f 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -288,7 +288,7 @@ fn main() { let path = PathBuf::from(s); println!("cargo:rustc-link-search=native={}", path.parent().unwrap().display()); if target.contains("windows") { - println!("cargo:rustc-link-lib=static-nobundle={}", stdcppname); + println!("cargo:rustc-link-lib=static:-bundle={}", stdcppname); } else { println!("cargo:rustc-link-lib=static={}", stdcppname); } @@ -302,6 +302,6 @@ fn main() { // Libstdc++ depends on pthread which Rust doesn't link on MinGW // since nothing else requires it. if target.contains("windows-gnu") { - println!("cargo:rustc-link-lib=static-nobundle=pthread"); + println!("cargo:rustc-link-lib=static:-bundle=pthread"); } } |
