@@ -314,7 +314,7 @@ impl Sandbox {
314
314
let mut cmd = self . docker_command ( Some ( crate_type) ) ;
315
315
set_execution_environment ( & mut cmd, Some ( target) , crate_type, edition, backtrace) ;
316
316
317
- let execution_cmd = build_execution_command ( Some ( target) , mode, crate_type, tests) ;
317
+ let execution_cmd = build_execution_command ( Some ( target) , channel , mode, crate_type, tests) ;
318
318
319
319
cmd. arg ( & channel. container_name ( ) ) . args ( & execution_cmd) ;
320
320
@@ -327,7 +327,7 @@ impl Sandbox {
327
327
let mut cmd = self . docker_command ( Some ( crate_type) ) ;
328
328
set_execution_environment ( & mut cmd, None , crate_type, edition, backtrace) ;
329
329
330
- let execution_cmd = build_execution_command ( None , mode, crate_type, tests) ;
330
+ let execution_cmd = build_execution_command ( None , channel , mode, crate_type, tests) ;
331
331
332
332
cmd. arg ( & channel. container_name ( ) ) . args ( & execution_cmd) ;
333
333
@@ -412,7 +412,7 @@ fn basic_secure_docker_command() -> Command {
412
412
cmd
413
413
}
414
414
415
- fn build_execution_command ( target : Option < CompileTarget > , mode : Mode , crate_type : CrateType , tests : bool ) -> Vec < & ' static str > {
415
+ fn build_execution_command ( target : Option < CompileTarget > , channel : Channel , mode : Mode , crate_type : CrateType , tests : bool ) -> Vec < & ' static str > {
416
416
use self :: CompileTarget :: * ;
417
417
use self :: CrateType :: * ;
418
418
use self :: Mode :: * ;
@@ -440,6 +440,12 @@ fn build_execution_command(target: Option<CompileTarget>, mode: Mode, crate_type
440
440
441
441
cmd. push ( "--emit=asm" ) ;
442
442
443
+ // Enable extra assembly comments for nightly builds
444
+ if let Channel :: Nightly = channel {
445
+ cmd. push ( "-Z" ) ;
446
+ cmd. push ( "asm-comments" ) ;
447
+ }
448
+
443
449
cmd. push ( "-C" ) ;
444
450
match flavor {
445
451
Att => cmd. push ( "llvm-args=-x86-asm-syntax=att" ) ,
0 commit comments