From 8cd91bc726d1425f3352a4dfe6017bb261d1db01 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 23 Sep 2023 14:26:04 +0200 Subject: [PATCH] Be more specific about not passing -c to armasm[64].exe. 4ce411709170197228d353aa2bbf385efe3b958a passes non-.asm files to the C compiler driver, which unlike armasm[64].exe does require -c flag. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e9beae309..3dc25b23b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1535,7 +1535,7 @@ impl Build { &mut cmd, &obj.dst, self.cuda, msvc, clang, gnu, is_asm, is_arm, ); // armasm and armasm64 don't requrie -c option - if !msvc || !is_asm || !is_arm { + if !is_assembler_msvc || !is_arm { cmd.arg("-c"); } if self.cuda && self.cuda_file_count() > 1 {