mirror of
https://github.com/openharmony/third_party_rust_cc-rs.git
synced 2026-07-01 23:04:09 -04:00
Don't separate files/opt when using msvc assembler
The MSVC assemblers don't support using `--` to mark the end of the options and the start of the "verbatim" file list. When the compiler family is MSVC with clang-cl, the assembler used will be the standard MSVC assembler.
This commit is contained in:
committed by
Thom Chiovoloni
parent
81ad8521cc
commit
cff232a034
+1
-1
@@ -1345,7 +1345,7 @@ impl Build {
|
||||
if self.cuda && self.files.len() > 1 {
|
||||
cmd.arg("--device-c");
|
||||
}
|
||||
if compiler.family == (ToolFamily::Msvc { clang_cl: true }) {
|
||||
if compiler.family == (ToolFamily::Msvc { clang_cl: true }) && !is_asm {
|
||||
// #513: For `clang-cl`, separate flags/options from the input file.
|
||||
// When cross-compiling macOS -> Windows, this avoids interpreting
|
||||
// common `/Users/...` paths as the `/U` flag and triggering
|
||||
|
||||
Reference in New Issue
Block a user