aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-10-25 06:37:11 -0400
committerJack Lloyd <[email protected]>2019-10-25 06:37:11 -0400
commit420c38ee70b35e3eea249ab12ad57db0aa617f64 (patch)
tree84842f7db9b406faf856d1805d330d6cf3ac3273 /configure.py
parent807518071555287f651586f37b7cf68df3358bae (diff)
Avoid passing ABI flags to the MSVC linker
It warns or apparently with certain versions errors. (GH #2179)
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py6
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'])