Skip to content

Commit

Permalink
Restore convenience UWP build flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Oct 15, 2019
1 parent c5d6bb6 commit 6ec5314
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions python/servo/build_commands.py
Expand Up @@ -164,18 +164,32 @@ class MachCommands(CommandBase):
@CommandArgument('--very-verbose', '-vv',
action='store_true',
help='Print very verbose output')
@CommandArgument('--uwp',
action='store_true',
help='Build for HoloLens (x64)'),
@CommandArgument('--win-arm64', action='store_true', help="Use arm64 Windows target")
@CommandArgument('params', nargs='...',
help="Command-line arguments to be passed through to Cargo")
@CommandBase.build_like_command_arguments
def build(self, release=False, dev=False, jobs=None, params=None,
no_package=False, verbose=False, very_verbose=False,
target=None, android=False, magicleap=False, libsimpleservo=False,
features=None, **kwargs):
features=None, uwp=False, win_arm64=False, **kwargs):
# Force the UWP-enabled target if the convenience UWP flags are passed.
if uwp and not target:
if win_arm64:
target = 'aarch64-uwp-windows-msvc'
else:
target = 'x86_64-uwp-windows-msvc'

opts = params or []
features = features or []

target, android = self.pick_target_triple(target, android, magicleap)
uwp = target and 'uwp' in target

# Infer UWP build if only provided a target.
if not uwp:
uwp = target and 'uwp' in target

target_path = base_path = self.get_target_dir()
if android:
Expand Down

0 comments on commit 6ec5314

Please sign in to comment.