Ensure clang-cl is always used in windows builds.

This commit is contained in:
Josh Matthews 2021-02-25 10:02:41 -05:00
parent 30143558b3
commit a6b872a9d1
2 changed files with 9 additions and 9 deletions

View file

@ -610,6 +610,14 @@ install them, let us know by filing a bug!")
extra_path += [self.msvc_package_dir("nuget")]
extra_path += [path.join(self.msvc_package_dir("xargo"))]
env.setdefault("CC", "clang-cl.exe")
env.setdefault("CXX", "clang-cl.exe")
if uwp:
env.setdefault("TARGET_CFLAGS", "")
env.setdefault("TARGET_CXXFLAGS", "")
env["TARGET_CFLAGS"] += " -DWINAPI_FAMILY=WINAPI_FAMILY_APP"
env["TARGET_CXXFLAGS"] += " -DWINAPI_FAMILY=WINAPI_FAMILY_APP"
arch = (target or host_triple()).split('-')[0]
vcpkg_arch = {
"x86_64": "x64-windows",