File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1395,16 +1395,19 @@ impl Build {
1395
1395
// its caching system since we're executing quite a lot of tests and
1396
1396
// ideally shouldn't pollute the cache too much.
1397
1397
if let Some ( path) = finder. maybe_have ( "wasmtime" ) {
1398
- if let Ok ( mut path ) = path. into_os_string ( ) . into_string ( ) {
1399
- path . push_str ( " run -C cache=n --dir ." ) ;
1398
+ if let Ok ( mut cmd ) = path. into_os_string ( ) . into_string ( ) {
1399
+ cmd . push_str ( " run -C cache=n --dir ." ) ;
1400
1400
// Make sure that tests have access to RUSTC_BOOTSTRAP. This (for example) is
1401
1401
// required for libtest to work on beta/stable channels.
1402
1402
//
1403
1403
// NB: with Wasmtime 20 this can change to `-S inherit-env` to
1404
1404
// inherit the entire environment rather than just this single
1405
1405
// environment variable.
1406
- path. push_str ( " --env RUSTC_BOOTSTRAP" ) ;
1407
- return Some ( path) ;
1406
+ cmd. push_str ( " --env RUSTC_BOOTSTRAP" ) ;
1407
+ // Make sure debug-info is enabled so we can have backtraces with file names and
1408
+ // line numbers.
1409
+ cmd. push_str ( " -D debug-info=y" ) ;
1410
+ return Some ( cmd) ;
1408
1411
}
1409
1412
}
1410
1413
You can’t perform that action at this time.
0 commit comments