diff options
author | Jack Lloyd <[email protected]> | 2019-10-25 08:27:22 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-10-25 08:27:22 -0400 |
commit | 51274b3850f4975bc27edbdafee7ea88ccc6982b (patch) | |
tree | 60a6cb76fa22e834d41f66d34abc742a3b070c5a | |
parent | 161a27d7e0c78c3db3a5d3fed087adb26552830a (diff) | |
parent | 420c38ee70b35e3eea249ab12ad57db0aa617f64 (diff) |
Merge GH #2182 Avoid passing ABI flags to the MSVC linker
-rwxr-xr-x | configure.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.py b/configure.py index 8b413db57..46331e78c 100755 --- a/configure.py +++ b/configure.py @@ -2147,6 +2147,12 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch, 'mod_list': sorted([m.basename for m in modules]) } + if cc.basename == 'msvc' and variables['cxx_abi_flags'] != '': + # MSVC linker doesn't support/need the ABI options, + # just transfer them over to just the compiler invocations + variables['cc_compile_flags'] = '%s %s' % (variables['cxx_abi_flags'], variables['cc_compile_flags']) + variables['cxx_abi_flags'] = '' + variables['lib_flags'] = cc.gen_lib_flags(options, variables) variables['cmake_lib_flags'] = cmake_escape(variables['lib_flags']) |