Skip to content

Commit 2f7793e

Browse files
authored
Merge pull request #240 from apple/run_add_build_config
Add support for build config in run script
2 parents 55a7209 + 9d3f11d commit 2f7793e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

run

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ def parse_args():
9494
parser.add_argument("--distcc",
9595
help='Pass --distcc to the build script',
9696
action='store_true')
97+
parser.add_argument("--build-config",
98+
metavar="NAME",
99+
choices=['debug', 'release'],
100+
dest='build_config',
101+
help='specify "debug" or "release" to override '
102+
'the build configuration in the projects.json file')
97103
return parser.parse_args()
98104

99105

@@ -173,6 +179,9 @@ def execute_runner(workspace, args):
173179
if args.add_xcodebuild_flags:
174180
runner_command += ['--add-xcodebuild-flags=%s' % args.add_xcodebuild_flags]
175181

182+
if args.build_config:
183+
runner_command += ['--build-config=%s' % args.build_config]
184+
176185
common.check_execute(runner_command, timeout=9999999)
177186

178187

0 commit comments

Comments
 (0)