aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-04-05 22:47:23 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2017-04-06 22:48:02 +0100
commitb4b55c3022305701090caaa6706e4d187ca59161 (patch)
tree7595b09e6c0dd1679d1e36d516ed7eef79954ae4
parent8a2699acd0c8b157e46cbdbb6e48a4f0442df9d8 (diff)
downloadmeson-b4b55c3022305701090caaa6706e4d187ca59161.zip
meson-b4b55c3022305701090caaa6706e4d187ca59161.tar.gz
meson-b4b55c3022305701090caaa6706e4d187ca59161.tar.bz2
Teach test cases/common/140 of the existence of Cygwin
-rw-r--r--test cases/common/140 get define/meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/test cases/common/140 get define/meson.build b/test cases/common/140 get define/meson.build
index 7a0969f..5ce4b36 100644
--- a/test cases/common/140 get define/meson.build
+++ b/test cases/common/140 get define/meson.build
@@ -13,6 +13,9 @@ foreach lang : ['c', 'cpp']
elif host_system == 'windows'
d = cc.get_define('_WIN32')
assert(d == '1', '_WIN32 value is @0@ instead of 1'.format(d))
+ elif host_system == 'cygwin'
+ d = cc.get_define('__CYGWIN__')
+ assert(d == '1', '__CYGWIN__ value is @0@ instead of 1'.format(d))
else
error('Please report a bug and help us improve support for this platform')
endif