File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,9 @@ publish = false
88compiler_builtins = { path = " ../" , features = [" compiler-builtins" ]}
99panic-handler = { path = ' ../crates/panic-handler' }
1010
11+ [target .'cfg(target_family = "windows")' .dependencies ]
12+ # enable mem on Windows, required for panic machinery
13+ compiler_builtins = { path = " ../" , features = [" compiler-builtins" , " mem" ]}
14+
1115[features ]
1216c = [" compiler_builtins/c" ]
Original file line number Diff line number Diff line change @@ -630,6 +630,9 @@ fn run() {
630630 something_with_a_dtor ( & || assert_eq ! ( bb( 1 ) , 1 ) ) ;
631631
632632 // Ensure panic machinery gets linked, but still allow this to run to completion.
633+ // FIXME(windows): we should have this on Windows too but it requires a lot more
634+ // missing symbols.
635+ #[ cfg( not( windows) ) ]
633636 if bb ( false ) {
634637 panic ! ( ) ;
635638 }
You can’t perform that action at this time.
0 commit comments