diff --git a/wscript b/wscript index 4554ac746f..2187e6cfd7 100644 --- a/wscript +++ b/wscript @@ -259,7 +259,7 @@ int main() { return 0; }''', compiler_name = 'clang-darwin' else: compiler_name = 'clang' - elif conf.env['CC'][0].find ('msvc') != -1: + elif conf.env['MSVC_COMPILER']: compiler_name = 'msvc' else: if platform == 'darwin':