diff options
author | Alexandre Rames <alexandre.rames@linaro.org> | 2016-10-25 09:51:11 +0100 |
---|---|---|
committer | Alexandre Rames <alexandre.rames@linaro.org> | 2016-10-25 13:00:44 +0000 |
commit | f5de33db01575430f7edec14f59fc8a915502a3b (patch) | |
tree | cbca18903d28446db60c8fc6cd995bd6b635952a /SConstruct | |
parent | be4b75206656cdef6364944025d26e3755bb8fe3 (diff) | |
download | vixl-f5de33db01575430f7edec14f59fc8a915502a3b.tar.gz |
Correctly abort the build if unknown `scons` options are passed.
Change-Id: I342d3190b5da34809159b16cb667534bb6205e0a
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -192,12 +192,6 @@ vars.AddVariables( ', '.join(config.tested_cpp_standards)) ) -# Abort the build if any command line option is unknown or invalid. -unknown_build_options = vars.UnknownVariables() -if unknown_build_options: - print 'Unknown build options:', unknown_build_options.keys() - Exit(1) - # We use 'variant directories' to avoid recompiling multiple times when build # options are changed, different build paths are used depending on the options # set. These are the options that should be reflected in the build directory @@ -337,6 +331,12 @@ def VIXLLibraryTarget(env): # The VIXL library, built by default. env = Environment(variables = vars) +# Abort the build if any command line option is unknown or invalid. +unknown_build_options = vars.UnknownVariables() +if unknown_build_options: + print 'Unknown build options:', unknown_build_options.keys() + Exit(1) + ConfigureEnvironment(env) Help(vars.GenerateHelpText(env)) libvixl = VIXLLibraryTarget(env) |