From b22c8ec5c74e75cf579aad50e3948e8c01f9d343 Mon Sep 17 00:00:00 2001 From: Guillaume Bonnet Date: Thu, 21 Jan 2016 18:18:43 +0100 Subject: [PATCH 1/2] configure: Support --disable-option-checking --- configure | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index fdef550a6451a..3a9051051da16 100755 --- a/configure +++ b/configure @@ -585,6 +585,7 @@ fi BOOL_OPTIONS="" VAL_OPTIONS="" +opt option-checking 1 "complain about unrecognized options" opt debug 0 "debug mode; disables optimization unless \`--enable-optimize\` given" opt valgrind 0 "run tests with valgrind (memcheck by default)" opt helgrind 0 "run tests with helgrind instead of memcheck" @@ -674,8 +675,11 @@ then fi # Validate Options -step_msg "validating $CFG_SELF args" -validate_opt +if [ -z "$CFG_DISABLE_OPTION_CHECKING" ] +then + step_msg "validating $CFG_SELF args" + validate_opt +fi # Validate the release channel, and configure options case "$CFG_RELEASE_CHANNEL" in From 46b75eb54bf19aa0eeb9d362b5387892fd2c2dfd Mon Sep 17 00:00:00 2001 From: Guillaume Bonnet Date: Wed, 3 Feb 2016 16:29:53 +0100 Subject: [PATCH 2/2] configure: Move --disable-option-checking to a more appropriate location --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 3a9051051da16..db3ca2eecbb12 100755 --- a/configure +++ b/configure @@ -585,7 +585,6 @@ fi BOOL_OPTIONS="" VAL_OPTIONS="" -opt option-checking 1 "complain about unrecognized options" opt debug 0 "debug mode; disables optimization unless \`--enable-optimize\` given" opt valgrind 0 "run tests with valgrind (memcheck by default)" opt helgrind 0 "run tests with helgrind instead of memcheck" @@ -610,6 +609,7 @@ opt llvm-version-check 1 "check if the LLVM version is supported, build anyway" opt rustbuild 0 "use the rust and cargo based build system" opt orbit 0 "get MIR where it belongs - everywhere; most importantly, in orbit" opt codegen-tests 1 "run the src/test/codegen tests" +opt option-checking 1 "complain about unrecognized options in this configure script" # Optimization and debugging options. These may be overridden by the release channel, etc. opt_nosave optimize 1 "build optimized rust code"