Skip to content

Commit 80485ad

Browse files
committed
Re-implemented the main driver argument parser using the new ArgumentParserBuilder DSL based on Rintaro's work last year.
1 parent eefec0c commit 80485ad

File tree

2 files changed

+929
-1104
lines changed

2 files changed

+929
-1104
lines changed

utils/build-script

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ class BuildScriptInvocation(object):
227227
diagnostics.fatal(
228228
"can't find distcc-pump (please install distcc-pump)")
229229

230-
if args.host_target is None or args.stdlib_deployment_targets is None:
230+
if args.host_target is None \
231+
or len(args.stdlib_deployment_targets) == 0:
231232
diagnostics.fatal("unknown operating system")
232233

233234
if args.symbols_package:
@@ -263,7 +264,7 @@ class BuildScriptInvocation(object):
263264
args.build_ninja = True
264265

265266
# Set the default stdlib-deployment-targets, if none were provided.
266-
if args.stdlib_deployment_targets is None:
267+
if len(args.stdlib_deployment_targets) == 0:
267268
stdlib_targets = \
268269
StdlibDeploymentTarget.default_stdlib_deployment_targets()
269270
args.stdlib_deployment_targets = [

0 commit comments

Comments
 (0)