From a1ea59cc550b9b5933c560fcdffeb15231690873 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Mon, 8 Jun 2020 01:00:14 -0700 Subject: [PATCH] [xenia-build] AVX(2/512) --- xenia-build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xenia-build b/xenia-build index 0fafa738d..19bcd0307 100755 --- a/xenia-build +++ b/xenia-build @@ -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.