From b5bf4cf9cc4021a8af9c98d3b110c43838db0467 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 22 Aug 2015 20:43:03 +0000 Subject: [PATCH] Change - to _ for check_compiler_option names --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index a723d01f2..2c834ec86 100644 --- a/SConstruct +++ b/SConstruct @@ -1217,7 +1217,7 @@ def add_compiler_option_tests(): def define_compiler_option_test(opt, doc=None): def f(self, context): self.Compile(context, text='', main='', msg='whether compiler accepts ' + opt, successflags={'CXXFLAGS' : [opt]}) - f.__name__ = n = 'check_compiler_option_' + opt.replace('=', '') + f.__name__ = n = 'check_compiler_option' + opt.replace('-', '_').replace('=', '') f.__doc__ = doc or ('\nhelp:assume compiler accepts ' + opt + '\n') setattr(ConfigureTests, n, custom_tests(f)) custom_tests = ConfigureTests._custom_test