File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/rustc_target/src/spec/tests Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ impl Target {
1919 if self . is_like_msvc {
2020 assert ! ( self . is_like_windows) ;
2121 }
22+ if self . os == "emscripten" {
23+ assert ! ( self . is_like_wasm) ;
24+ }
2225
2326 // Check that default linker flavor is compatible with some other key properties.
2427 assert_eq ! ( self . is_like_osx, matches!( self . linker_flavor, LinkerFlavor :: Darwin ( ..) ) ) ;
@@ -137,7 +140,7 @@ impl Target {
137140 assert ! ( self . dynamic_linking) ;
138141 }
139142 // 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 {
141144 assert_eq ! ( self . relocation_model, RelocModel :: Pic ) ;
142145 }
143146 if self . position_independent_executables {
You can’t perform that action at this time.
0 commit comments