Remove naive dedup across compiler and linker args

Fixes #6097
pull/6099/head
Andrei Alexeyev 5 years ago
parent f96a8cbdf5
commit 0ec7da338a
No known key found for this signature in database
GPG Key ID: 363707CD4C7FE8A4
  1. 5
      mesonbuild/compilers/mixins/clike.py

@ -312,10 +312,7 @@ class CLikeCompiler:
if mode == 'link':
# Add LDFLAGS from the env
sys_ld_args = env.coredata.get_external_link_args(self.for_machine, self.language)
# CFLAGS and CXXFLAGS go to both linking and compiling, but we want them
# to only appear on the command line once. Remove dupes.
largs += [x for x in sys_ld_args if x not in sys_args]
largs += env.coredata.get_external_link_args(self.for_machine, self.language)
cargs += self.get_compiler_args_for_mode(mode)
return cargs, largs

Loading…
Cancel
Save