File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1512,7 +1512,8 @@ impl Build {
1512
1512
let clang = compiler. family == ToolFamily :: Clang ;
1513
1513
let gnu = compiler. family == ToolFamily :: Gnu ;
1514
1514
1515
- let ( mut cmd, name) = if msvc && asm_ext == Some ( AsmFileExt :: DotAsm ) {
1515
+ let is_assembler_msvc = msvc && asm_ext == Some ( AsmFileExt :: DotAsm ) ;
1516
+ let ( mut cmd, name) = if is_assembler_msvc {
1516
1517
self . msvc_macro_assembler ( ) ?
1517
1518
} else {
1518
1519
let mut cmd = compiler. to_command ( ) ;
@@ -1543,7 +1544,7 @@ impl Build {
1543
1544
if is_asm {
1544
1545
cmd. args ( self . asm_flags . iter ( ) . map ( std:: ops:: Deref :: deref) ) ;
1545
1546
}
1546
- if compiler. family == ( ToolFamily :: Msvc { clang_cl : true } ) && !is_asm {
1547
+ if compiler. family == ( ToolFamily :: Msvc { clang_cl : true } ) && !is_assembler_msvc {
1547
1548
// #513: For `clang-cl`, separate flags/options from the input file.
1548
1549
// When cross-compiling macOS -> Windows, this avoids interpreting
1549
1550
// common `/Users/...` paths as the `/U` flag and triggering
You can’t perform that action at this time.
0 commit comments