You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: [email protected]: clang-cl: warning: '/Users/messense/Projects/crfsuite-rs/target/x86_64-pc-windows-msvc/debug/build/crfsuite-sys-a73da6d4e4774cd8/out/14314275059944146007detect_compiler_family.c' treated as the '/U' option [-Wslash-u-filename]
warning: [email protected]: clang-cl: note: use '--' to treat subsequent arguments as filenames
warning: [email protected]: clang-cl: error: no input files
warning: [email protected]: Compiler family detection failed due to error: ToolExecError: Command "clang-cl" "-E" "/Users/messense/Projects/crfsuite-rs/target/x86_64-pc-windows-msvc/debug/build/crfsuite-sys-a73da6d4e4774cd8/out/14314275059944146007detect_compiler_family.c" with args clang-cl did not execute successfully (status code exit status: 1).
It seems like the /Users/... absolute path on macOS does not work well with clang-cl.
To reproduce:
$ touch empty.c
$ ln -s $(xcrun -f clang) clang-cl
$ ./clang-cl -E $(realpath ./empty.c)
clang-cl: warning: '/Users/messense/Projects/cargo-xwin/empty.c' treated as the '/U' option [-Wslash-u-filename]
clang-cl: note: use '--' to treat subsequent arguments as filenames
clang-cl: error: no input files
# this works fine
$ ./clang-cl -E ./empty.c
# 1 "./empty.c"# 1 "<built-in>" 1# 1 "<built-in>" 3# 375 "<built-in>" 3# 1 "<command line>" 1# 1 "<built-in>" 2# 1 "./empty.c" 2
It seems like the
/Users/...
absolute path on macOS does not work well withclang-cl
.To reproduce:
This is handled in
cc-rs/src/lib.rs
Lines 1791 to 1797 in 9138052
cc-rs/src/tool.rs
Lines 136 to 145 in 9138052
The text was updated successfully, but these errors were encountered: