aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-01-08 21:59:50 -0500
committerDylan Baker <dylan@pnwbakers.com>2019-02-15 09:17:24 -0800
commitd87744138ac72df23ecce950909ac89c1f0decc7 (patch)
treedd32a30d08205d975f71d407ebbd7ddd55c0fdfa /mesonbuild/backend/vs2010backend.py
parentc83b426b0fd3426501fb4a6ea79245d8528e3284 (diff)
downloadmeson-d87744138ac72df23ecce950909ac89c1f0decc7.zip
meson-d87744138ac72df23ecce950909ac89c1f0decc7.tar.gz
meson-d87744138ac72df23ecce950909ac89c1f0decc7.tar.bz2
Remove remaining cross-specific compiler-args code
Since the consolidation of flags in `compiler_options.*`, this cross/native special casing is not needed.
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r--mesonbuild/backend/vs2010backend.py23
1 files changed, 10 insertions, 13 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index 6148474..c2f89c8 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -896,14 +896,12 @@ class Vs2010Backend(backends.Backend):
for l, args in self.build.global_args.items():
if l in file_args:
file_args[l] += args
- if not target.is_cross:
- # Compile args added from the env or cross file: CFLAGS/CXXFLAGS,
- # etc. We want these to override all the defaults, but not the
- # per-target compile args.
- for key, opt in self.environment.coredata.compiler_options[for_machine].items():
- l, suffix = key.split('_', 1)
- if suffix == 'args' and l in file_args:
- file_args[l] += opt.value
+ # Compile args added from the env or cross file: CFLAGS/CXXFLAGS, etc. We want these
+ # to override all the defaults, but not the per-target compile args.
+ for key, opt in self.environment.coredata.compiler_options[for_machine].items():
+ l, suffix = key.split('_', 1)
+ if suffix == 'args' and l in file_args:
+ file_args[l] += opt.value
for args in file_args.values():
# This is where Visual Studio will insert target_args, target_defines,
# etc, which are added later from external deps (see below).
@@ -1058,11 +1056,10 @@ class Vs2010Backend(backends.Backend):
# Add link args added using add_global_link_arguments()
# These override per-project link arguments
extra_link_args += self.build.get_global_link_args(compiler, target.is_cross)
- if not target.is_cross:
- # Link args added from the env: LDFLAGS, or the cross file. We
- # want these to override all the defaults but not the
- # per-target link args.
- extra_link_args += self.environment.coredata.get_external_link_args(for_machine, compiler.get_language())
+ # Link args added from the env: LDFLAGS, or the cross file. We want
+ # these to override all the defaults but not the per-target link
+ # args.
+ extra_link_args += self.environment.coredata.get_external_link_args(for_machine, compiler.get_language())
# Only non-static built targets need link args and link dependencies
extra_link_args += target.link_args
# External deps must be last because target link libraries may depend on them.