aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2016-07-19 11:08:40 +1000
committerXidorn Quan <me@upsuper.org>2016-07-19 12:16:38 +1000
commitc3e20eb7f548e9f95aa643819ff64628b2611842 (patch)
tree65d7e67ed26d3eb067fae632eb2e799036a26b09
parent49f7f5433144eec81639a288dc93b6d5fe5a63ce (diff)
downloadservo-c3e20eb7f548e9f95aa643819ff64628b2611842.tar.gz
servo-c3e20eb7f548e9f95aa643819ff64628b2611842.zip
Fix target check and use "all" as default target
-rwxr-xr-xports/geckolib/gecko_bindings/tools/regen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/geckolib/gecko_bindings/tools/regen.py b/ports/geckolib/gecko_bindings/tools/regen.py
index 6be27a22bae..9c4acfdaa43 100755
--- a/ports/geckolib/gecko_bindings/tools/regen.py
+++ b/ports/geckolib/gecko_bindings/tools/regen.py
@@ -376,7 +376,7 @@ def builds_for(target_name, kind):
def main():
parser = argparse.ArgumentParser(description=DESCRIPTION)
- parser.add_argument('--target',
+ parser.add_argument('--target', default="all",
help='The target to build, either "structs" or "bindings"')
parser.add_argument('--kind',
help='Kind of build')
@@ -398,7 +398,7 @@ def main():
print("\"{}\" doesn't seem to be a directory".format(args.objdir))
return 1
- if args.target != COMMON_BUILD_KEY and args.target != "all" and args.target not in COMPILATION_TARGETS:
+ if (args.target != "all" and args.target not in COMPILATION_TARGETS) or args.target == COMMON_BUILD_KEY:
print("{} is not a valid compilation target.".format(args.target))
print("Valid compilation targets are:")
for target in COMPILATION_TARGETS.keys():