mirror of
https://github.com/servo/servo.git
synced 2025-07-18 12:53:40 +01:00
Ensure clang-cl is always used in windows builds.
This commit is contained in:
parent
30143558b3
commit
a6b872a9d1
2 changed files with 9 additions and 9 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue