aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers.py
diff options
context:
space:
mode:
authorGuillaume Poirier-Morency <guillaumepoiriermorency@gmail.com>2017-04-09 23:13:58 -0400
committerGuillaume Poirier-Morency <guillaumepoiriermorency@gmail.com>2017-05-08 14:58:52 -0400
commit904ed5a59989b1cacc71da51508ba9b04db28fe1 (patch)
tree628a65bc244a789ffd64519c9ad5afc09376acf2 /mesonbuild/compilers.py
parentccab7d64f474f00e010b2c6601e63d8034c5552a (diff)
downloadmeson-904ed5a59989b1cacc71da51508ba9b04db28fe1.zip
meson-904ed5a59989b1cacc71da51508ba9b04db28fe1.tar.gz
meson-904ed5a59989b1cacc71da51508ba9b04db28fe1.tar.bz2
Use 'generate_basic_compiler_args' for Vala targets
Move '-C' option into 'get_always_args' as we always generate C sources. Add a branch in the dependency management to perform Vala-specific work of adding '--pkg' and '--target-glib'.
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r--mesonbuild/compilers.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 406c719..6ade23f 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -1678,6 +1678,15 @@ class ValaCompiler(Compiler):
def get_compile_only_args(self):
return ['-C']
+ def get_pic_args(self):
+ return []
+
+ def get_always_args(self):
+ return ['-C']
+
+ def get_warn_args(self, warning_level):
+ return []
+
def get_werror_args(self):
return ['--fatal-warnings']