File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -86,5 +86,9 @@ if [ "$TARGET" = "x86_64-unknown-linux-gnux32" ]; then
86
86
opt=" --release"
87
87
fi
88
88
89
- cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml --target $TARGET
89
+ # Building with --no-default-features is currently broken on rumprun because we
90
+ # need cfg(target_vendor), which is currently unstable.
91
+ if [ " $TARGET " != " x86_64-rumprun-netbsd" ]; then
92
+ cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml --target $TARGET
93
+ fi
90
94
exec cargo test $opt --manifest-path libc-test/Cargo.toml --target $TARGET
Original file line number Diff line number Diff line change @@ -306,11 +306,11 @@ cfg_if! {
306
306
} else if #[ cfg( target_os = "emscripten" ) ] {
307
307
#[ link( name = "c" ) ]
308
308
extern { }
309
- } else if #[ cfg( all( target_os = "netbsd" ) ) ] {
309
+ } else if #[ cfg( all( target_os = "netbsd" ,
310
+ feature = "stdbuild" , target_vendor = "rumprun" ) ) ] {
310
311
// Since we don't use -nodefaultlibs on Rumprun, libc is always pulled
311
312
// in automatically by the linker. We avoid passing it explicitly, as it
312
313
// causes some versions of binutils to crash with an assertion failure.
313
- #[ cfg_attr( feature = "stdbuild" , cfg( target_vendor = "rumprun" ) ) ]
314
314
#[ link( name = "m" ) ]
315
315
extern { }
316
316
} else if #[ cfg( any( target_os = "macos" ,
You can’t perform that action at this time.
0 commit comments