aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-04-03 16:44:18 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-04-03 16:44:18 +0300
commit6291fb4056de513a64ad52b65e9f4166323d35f3 (patch)
tree3e1328a1eb3045e1097db2818a6701c85ddcd4ae /mesonbuild/compilers.py
parent3415c3a693d663de40a76b8ee962ab145d60498a (diff)
downloadmeson-6291fb4056de513a64ad52b65e9f4166323d35f3.zip
meson-6291fb4056de513a64ad52b65e9f4166323d35f3.tar.gz
meson-6291fb4056de513a64ad52b65e9f4166323d35f3.tar.bz2
Put buildtype flags to vala compiles.
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r--mesonbuild/compilers.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index fc4498c..ac5cdf5 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -126,7 +126,7 @@ base_options = {
'off'),
'b_coverage': coredata.UserBooleanOption('b_coverage',
'Enable coverage tracking.',
- True),
+ False),
}
def sanitizer_compile_args(value):
@@ -1044,6 +1044,11 @@ class ValaCompiler(Compiler):
suffix = filename.split('.')[-1]
return suffix in ('vala', 'vapi')
+ def get_buildtype_args(self, buildtype):
+ if buildtype == 'debug' or buildtype == 'debugoptimized':
+ return ['--debug']
+ return []
+
class RustCompiler(Compiler):
def __init__(self, exelist, version):
super().__init__(exelist, version)