Restore convenience UWP build flags.

This commit is contained in:
Josh Matthews 2019-10-15 10:44:14 -04:00 committed by GitHub
parent c5d6bb604d
commit 6ec5314911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: