File tree 1 file changed +4
-1
lines changed
compiler/rustc_target/src/spec/tests
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ impl Target {
19
19
if self . is_like_msvc {
20
20
assert ! ( self . is_like_windows) ;
21
21
}
22
+ if self . os == "emscripten" {
23
+ assert ! ( self . is_like_wasm) ;
24
+ }
22
25
23
26
// Check that default linker flavor is compatible with some other key properties.
24
27
assert_eq ! ( self . is_like_osx, matches!( self . linker_flavor, LinkerFlavor :: Darwin ( ..) ) ) ;
@@ -137,7 +140,7 @@ impl Target {
137
140
assert ! ( self . dynamic_linking) ;
138
141
}
139
142
// Apparently PIC was slow on wasm at some point, see comments in wasm_base.rs
140
- if self . dynamic_linking && !( self . is_like_wasm && self . os != "emscripten" ) {
143
+ if self . dynamic_linking && !self . is_like_wasm {
141
144
assert_eq ! ( self . relocation_model, RelocModel :: Pic ) ;
142
145
}
143
146
if self . position_independent_executables {
You can’t perform that action at this time.
0 commit comments