We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96dbf71 + 016053d commit b828fafCopy full SHA for b828faf
workspace_tools/build.py
100644
100755
@@ -58,12 +58,18 @@
58
59
# Get target list
60
if options.mcu:
61
+ if options.mcu not in TARGET_NAMES:
62
+ print "Given MCU '%s' not into the supported list:\n%s" % (options.mcu, TARGET_NAMES)
63
+ sys.exit(1)
64
targets = [options.mcu]
65
else:
66
targets = TARGET_NAMES
67
68
# Get toolchains list
69
if options.tool:
70
+ if options.tool not in TOOLCHAINS:
71
+ print "Given toolchain '%s' not into the supported list:\n%s" % (options.tool, TOOLCHAINS)
72
73
toolchains = [options.tool]
74
75
toolchains = TOOLCHAINS
0 commit comments