aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-08-16 22:50:09 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-08-16 23:32:39 +0300
commit78739afd9c75fd0b7265536c41922abe7be7a8e4 (patch)
tree2eac60fbe83640b2d9e0bcd15c883f827d98dba7 /environment.py
parent63572626c69fc888b6fa94d00cf1bfcb7bb3c652 (diff)
downloadmeson-78739afd9c75fd0b7265536c41922abe7be7a8e4.zip
meson-78739afd9c75fd0b7265536c41922abe7be7a8e4.tar.gz
meson-78739afd9c75fd0b7265536c41922abe7be7a8e4.tar.bz2
Use system() instead of name() which is a confusing term.
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/environment.py b/environment.py
index c594776..abacbe0 100644
--- a/environment.py
+++ b/environment.py
@@ -91,7 +91,7 @@ class Environment():
cross = self.is_cross_build()
if (not cross and mesonlib.is_windows()) \
- or (cross and self.cross_info.has_host() and self.cross_info.config['host_machine']['name'] == 'windows'):
+ or (cross and self.cross_info.has_host() and self.cross_info.config['host_machine']['system'] == 'windows'):
self.exe_suffix = 'exe'
self.import_lib_suffix = 'lib'
self.shared_lib_suffix = 'dll'
@@ -102,7 +102,7 @@ class Environment():
else:
self.exe_suffix = ''
if (not cross and mesonlib.is_osx()) or \
- (cross and self.cross_info.has_host() and self.cross_info.config['host_machine']['name'] == 'darwin'):
+ (cross and self.cross_info.has_host() and self.cross_info.config['host_machine']['system'] == 'darwin'):
self.shared_lib_suffix = 'dylib'
else:
self.shared_lib_suffix = 'so'