mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Build native dependencies with UWP compatibility.
This commit is contained in:
parent
86ad84198e
commit
dcbec3e404
4 changed files with 16 additions and 10 deletions
|
@ -626,6 +626,11 @@ class MachCommands(CommandBase):
|
|||
if sys.platform == "win32":
|
||||
env.setdefault("CC", "clang-cl.exe")
|
||||
env.setdefault("CXX", "clang-cl.exe")
|
||||
if uwp:
|
||||
env.setdefault("CFLAGS", "")
|
||||
env.setdefault("CXXFLAGS", "")
|
||||
env["CFLAGS"] += " -DWINAPI_FAMILY=WINAPI_FAMILY_APP"
|
||||
env["CXXFLAGS"] += " -DWINAPI_FAMILY=WINAPI_FAMILY_APP"
|
||||
else:
|
||||
env.setdefault("CC", "clang")
|
||||
env.setdefault("CXX", "clang++")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue