[xenia-build] AVX(2/512)

This commit is contained in:
Margen67 2020-06-08 01:00:14 -07:00 committed by illusion
parent 4b5a082704
commit a1ea59cc55
1 changed files with 4 additions and 0 deletions

View File

@ -588,6 +588,9 @@ class BaseBuildCommand(Command):
self.parser.add_argument(
'--config', choices=['checked', 'debug', 'release'], default='debug',
type=str.lower, help='Chooses the build configuration.')
self.parser.add_argument(
'--cpu_arch', choices=['avx', 'avx2', 'avx512'], default='avx',
type=str.lower, help='Chooses the CPU architecture.')
self.parser.add_argument(
'--target', action='append', default=[],
help='Builds only the given target(s).')
@ -628,6 +631,7 @@ class BaseBuildCommand(Command):
'/m',
'/v:m',
'/p:Configuration=' + args['config'],
'/p:VCBuildAdditionalOptions=/arch:' + args['cpu_arch'],
] + ([targets] if targets is not None else []) + pass_args, shell=False)
elif sys.platform == 'darwin':
# TODO(benvanik): other platforms.