File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
compiler/rustc_target/src/spec Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ pub fn options() -> TargetOptions {
6161
6262 TargetOptions {
6363 is_like_wasm : true ,
64+ families : vec ! [ "wasm" . to_string( ) ] ,
6465
6566 // we allow dynamic linking, but only cdylibs. Basically we allow a
6667 // final library artifact that exports some symbols (a wasm module) but
Original file line number Diff line number Diff line change 1- // run -pass
1+ // build -pass
22// pretty-expanded FIXME #23616
3- // ignore-wasm32-bare no target_family
3+ // ignore-wasm32-bare no bare family
44// ignore-sgx
55
66#[ cfg( windows) ]
Original file line number Diff line number Diff line change 1- // run-pass
2- // ignore-wasm32-bare no target_family
1+ // build-pass
32// ignore-sgx
43
54// pretty-expanded FIXME #23616
@@ -11,3 +10,7 @@ pub fn main() {
1110#[ cfg( target_family = "unix" ) ]
1211pub fn main ( ) {
1312}
13+
14+ #[ cfg( target_family="wasm" ) ]
15+ pub fn main ( ) {
16+ }
You can’t perform that action at this time.
0 commit comments