File tree 6 files changed +5
-11
lines changed
6 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ fn main() {
288
288
let path = PathBuf :: from ( s) ;
289
289
println ! ( "cargo:rustc-link-search=native={}" , path. parent( ) . unwrap( ) . display( ) ) ;
290
290
if target. contains ( "windows" ) {
291
- println ! ( "cargo:rustc-link-lib=static-nobundle ={}" , stdcppname) ;
291
+ println ! ( "cargo:rustc-link-lib=static:-bundle ={}" , stdcppname) ;
292
292
} else {
293
293
println ! ( "cargo:rustc-link-lib=static={}" , stdcppname) ;
294
294
}
@@ -302,6 +302,6 @@ fn main() {
302
302
// Libstdc++ depends on pthread which Rust doesn't link on MinGW
303
303
// since nothing else requires it.
304
304
if target. contains ( "windows-gnu" ) {
305
- println ! ( "cargo:rustc-link-lib=static-nobundle =pthread" ) ;
305
+ println ! ( "cargo:rustc-link-lib=static:-bundle =pthread" ) ;
306
306
}
307
307
}
Original file line number Diff line number Diff line change 1
1
#![ feature( nll) ]
2
- #![ feature( static_nobundle ) ]
2
+ #![ feature( native_link_modifiers ) ]
3
3
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
4
4
5
5
// NOTE: This crate only exists to allow linking on mingw targets.
Original file line number Diff line number Diff line change 5
5
#![ feature( native_link_modifiers_bundle) ]
6
6
#![ feature( nll) ]
7
7
#![ feature( staged_api) ]
8
- #![ feature( static_nobundle) ]
9
8
#![ feature( c_unwind) ]
10
9
#![ cfg_attr( not( target_env = "msvc" ) , feature( libc) ) ]
11
10
Original file line number Diff line number Diff line change 2
2
// are caught by catch_unwind. Also tests that Rust panics can unwind through
3
3
// C++ code.
4
4
5
- // For linking libstdc++ on MinGW
6
- #![ cfg_attr( all( windows, target_env = "gnu" ) , feature( static_nobundle) ) ]
7
5
#![ feature( c_unwind) ]
8
6
9
7
use std:: panic:: { catch_unwind, AssertUnwindSafe } ;
Original file line number Diff line number Diff line change @@ -117,10 +117,10 @@ else
117
117
# that it is compiled with the expectation that pthreads is dynamically
118
118
# linked as a DLL and will fail to link with a statically linked libpthread.
119
119
#
120
- # So we end up with the following hack: we link use static-nobundle to only
120
+ # So we end up with the following hack: we link use static:-bundle to only
121
121
# link the parts of libstdc++ that we actually use, which doesn't include
122
122
# the dependency on the pthreads DLL.
123
- EXTRARSCXXFLAGS := -l static-nobundle =stdc++
123
+ EXTRARSCXXFLAGS := -l static:-bundle =stdc++ -Z unstable-options
124
124
endif
125
125
else
126
126
ifeq ($(UNAME ) ,Darwin)
Original file line number Diff line number Diff line change 1
1
// Tests that linking to C++ code with global destructors works.
2
2
3
- // For linking libstdc++ on MinGW
4
- #![ cfg_attr( all( windows, target_env = "gnu" ) , feature( static_nobundle) ) ]
5
-
6
3
extern "C" {
7
4
fn get ( ) -> u32 ;
8
5
}
You can’t perform that action at this time.
0 commit comments