blob: 68b76282ff716fe0762d9651839b35dabcc198a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
def if_not_platform(platforms, f):
if not (config.platform in platforms):
return f
else:
return normal
skip_if_not_osx = if_not_platform(['i386-apple-darwin','x86_64-apple-darwin'], skip)
test('objc-hi',
[ skip_if_not_osx,
objc_src,
expect_fail_for(['ghci']) ],
compile_and_run, ['-framework Foundation'])
test('objcpp-hi',
[ skip_if_not_osx,
objcpp_src,
expect_fail_for(['ghci']) ],
compile_and_run, ['-framework Foundation -lstdc++'])
|