Made prebuilt object build on OSX.

pull/15/head
Jussi Pakkanen 11 years ago
parent 8f5d93b4d4
commit b9d2db942c
  1. 19
      test cases/prebuilt object/1 basic/meson.build
  2. BIN
      test cases/prebuilt object/1 basic/osx.o

@ -9,7 +9,26 @@
project('prebuilt object', 'c') project('prebuilt object', 'c')
if host.name() == 'darwin'
object = 'osx.o'
elif host.name() == 'linux'
if meson.get_compiler('c').sizeof('void*') == 8
object = 'linux-amd64.o' object = 'linux-amd64.o'
else
object = 'linux-i386.o'
endif
elif host.name() == 'windows'
id = meson.get_compiler('c').get_id()
if id == 'gcc'
object = 'mingw.obj'
elif id == 'msvc'
object = 'msvc.obj'
else
error('Unknown compiler.')
endif
else
error('Unknown platform.')
endif
# Remember: do not put source.c in this # Remember: do not put source.c in this
# declaration. Only the prebuilt object. # declaration. Only the prebuilt object.

Loading…
Cancel
Save