Skip to content

Commit adcfa30

Browse files
committed
avoided zigbuild errors(rust-lang#1360)
adjusted how supports_path_delimiter is handled.
1 parent 162de1b commit adcfa30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,10 @@ impl Build {
18001800
cmd.args(self.asm_flags.iter().map(std::ops::Deref::deref));
18011801
}
18021802

1803-
if compiler.supports_path_delimiter() && !is_assembler_msvc {
1803+
if compiler.supports_path_delimiter()
1804+
&& !is_assembler_msvc
1805+
&& matches!(compiler.family, ToolFamily::Clang { zig_cc: false })
1806+
{
18041807
// #513: For `clang-cl`, separate flags/options from the input file.
18051808
// When cross-compiling macOS -> Windows, this avoids interpreting
18061809
// common `/Users/...` paths as the `/U` flag and triggering

0 commit comments

Comments
 (0)