Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Don't overwrite
clang-cl
with clang
for ARM64 Windows builds
When cross-compiling for Windows, it's common to use the `clang-cl` driver which supports parsing `cl.exe`-like arguments. When `ring` however overwrites this compiler with `clang`, existing user arguments in i.e. `CFLAGS` are not compatible resulting in various "unknown argument" errors such as for `-vctoolsdir` and `-winsdkdir`. As pointed out in the original ARM64 Windows support PR, compiling `ring` with `clang-cl` works equally well as `clang`: allow that by not overwriting the compiler with `clang` if it's already `clang-cl`, to not have to sort out incompatible arguments.
- Loading branch information