From 9688c50e7e445e0e89645b2f70018d6340d43d3d Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 8 Apr 2017 16:48:18 +0000 Subject: [PATCH] Add warning when build arguments override unknown variable warning --- SConstruct | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 37b6865cc..b6800e330 100644 --- a/SConstruct +++ b/SConstruct @@ -4261,9 +4261,11 @@ def main(register_program,_d1xp=D1XProgram,_d2xp=D2XProgram): ignore_unknown_variables = int(ignore_unknown_variables) except ValueError: ignore_unknown_variables = False + j = 'Unknown values specified on command line.%s' % \ +''.join(['\n\t%s' % k for k in unknown.keys()]) if not ignore_unknown_variables: - raise SCons.Errors.StopError('Unknown values specified on command line.' + -''.join(['\n\t%s' % k for k in unknown.keys()]) + + raise SCons.Errors.StopError(j + '\nRemove unknown values or set ignore_unknown_variables=1 to continue.') + print('warning: %s\nBuild will continue, but these values have no effect.\n' % j) main(register_program)