aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/c.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-05-13 10:36:58 -0400
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-06 20:02:37 +0000
commitb7d442150dd8575f0756e3bc9e953d0f198e16c6 (patch)
treeea286310111e3e1103db39908cdb8295a3b337f0 /mesonbuild/compilers/c.py
parent58a9555ddf49d851a7eb56874df1d0b3f498e53e (diff)
downloadmeson-b7d442150dd8575f0756e3bc9e953d0f198e16c6.zip
meson-b7d442150dd8575f0756e3bc9e953d0f198e16c6.tar.gz
meson-b7d442150dd8575f0756e3bc9e953d0f198e16c6.tar.bz2
Move <lang>_args to coredata.compiler_options
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r--mesonbuild/compilers/c.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index 09ac99c..e14d3d8 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -351,13 +351,13 @@ class CCompiler(Compiler):
if not self.is_cross:
if mode == 'preprocess':
# Add CPPFLAGS from the env.
- args += env.coredata.external_preprocess_args[self.language]
+ args += env.coredata.get_external_preprocess_args(self.language)
elif mode == 'compile':
# Add CFLAGS/CXXFLAGS/OBJCFLAGS/OBJCXXFLAGS from the env
- args += env.coredata.external_args[self.language]
+ args += env.coredata.get_external_args(self.language)
elif mode == 'link':
# Add LDFLAGS from the env
- args += env.coredata.external_link_args[self.language]
+ args += env.coredata.get_external_link_args(self.language)
args += self.get_compiler_check_args()
# extra_args must override all other arguments, so we add them last
args += extra_args