aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-03-08 19:03:06 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-03-08 19:03:06 +0200
commit8a0a982073516b9b1dc4ba64236c52fd47129e8e (patch)
tree707f5c165f89c4f261a1575c87d3af7b7633c5b3 /environment.py
parentb4a6ea7d620fdfa1784ae2405474e1872446621f (diff)
downloadmeson-8a0a982073516b9b1dc4ba64236c52fd47129e8e.zip
meson-8a0a982073516b9b1dc4ba64236c52fd47129e8e.tar.gz
meson-8a0a982073516b9b1dc4ba64236c52fd47129e8e.tar.bz2
Do function checking without linking so you do not need to define libraries to link against.
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/environment.py b/environment.py
index 58a7bf6..dafb5a7 100644
--- a/environment.py
+++ b/environment.py
@@ -301,16 +301,7 @@ int main(int argc, char **argv) {
if isinstance(val, bool):
return val
raise EnvironmentException('Cross variable {0} is not an boolean.'.format(varname))
- cross_failed = False
- try:
- res = self.run(templ % (prefix, funcname))
- except CrossNoRunException:
- cross_failed = True
- if cross_failed:
- message = '''Can not determine existance {0} because cross compiled binaries are not runnable.
-Please define variable {1} in your cross compilation definition file.'''.format(funcname, varname)
- raise EnvironmentException(message)
- return res.compiled
+ return self.compiles(templ % (prefix, funcname))
def has_member(self, typename, membername, prefix):
templ = '''%s