aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-05-25 23:44:24 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-05-25 23:44:24 +0300
commitdf03f849a8d52bb45677b17b2516f2257ea42dda (patch)
treec92548f1fc649b4993a1e84bca968e816265365b /mesonbuild/environment.py
parentdf90b265336b896e2e956d9454187838703d69d1 (diff)
parentafe7252476290ffb6d26a21bf4ceab9eecc7ca79 (diff)
downloadmeson-df03f849a8d52bb45677b17b2516f2257ea42dda.zip
meson-df03f849a8d52bb45677b17b2516f2257ea42dda.tar.gz
meson-df03f849a8d52bb45677b17b2516f2257ea42dda.tar.bz2
Merge pull request #542 from mesonbuild/ownstdlib
Build transparently with a custom standard library
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 41e8531..5096320 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -759,6 +759,12 @@ class CrossBuildInfo():
def has_target(self):
return 'target_machine' in self.config
+ def has_stdlib(self, language):
+ return language + '_stdlib' in self.config['properties']
+
+ def get_stdlib(self, language):
+ return self.config['properties'][language + '_stdlib']
+
# Wehn compiling a cross compiler we use the native compiler for everything.
# But not when cross compiling a cross compiler.
def need_cross_compiler(self):