summaryrefslogtreecommitdiff
path: root/test cases/prebuilt object/1 basic/meson.build
blob: 01b2b9a4ac82afb46aa90b3c9da28169d4ff6ff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This test is on its own because it is special.
# To run the test you need the prebuilt object
# file for the given platform.
#
# Combined with cross compilation this would make
# the state space explode so let's just keep this
# in its own subdir so it's not run during cross
# compilation tests.

project('prebuilt object', 'c')

if host.name() == 'windows'
  prebuilt = 'prebuilt.obj'
else
  prebuilt = 'prebuilt.o'
endif

# Remember: do not put source.c in this
# declaration. run_tests.py generates the
# prebuilt object before running this test.

e = executable('prog', 'main.c',
objects : prebuilt)

test('objtest', e)