Open ancwrd1 opened 1 year ago
Looks like /home/user/.cache/cargo-xwin/xwin/
directory has been deleted by something.
Anyway, can you try delete the whole /home/user/.cache/cargo-xwin
directory and re-run? I suspect it might have something to do with #74.
Tried cleaning it up but without much success. If I look at the command line output:
...
running "clang" "-O3" "--target=aarch64-pc-windows-msvc"
...
"/imsvc/home/dmitry/.cache/cargo-xwin/xwin/sdk/include/ucrt"
It seems that there is a mix of gnu-style and msvc-style arguments which is probably a cause of the issue because the leading slash is not recognized as an option.
Simple to reproduce:
cargo init test-ring
cd test-ring
cargo add ring
cargo xwin build --target aarch64-pc-windows-msvc
https://github.com/briansmith/ring/blob/a9b88826e7826a6f9422680fb6240f75511cf2c7/build.rs#L580
I'm not sure what we can do here, ring
forces clang
instead of supporting both clang
and clang-cl
.
But then I am wondering why does it work for x86_64?
Ah, sorry, I see the code in the ring specifically for AARCH64...
As far as I understand ring 0.17 supports aarch64-cp-windows-msvc target, however when trying to build it with xwin I get the following error: