Skip whole_archive test for VS older than 2015
This commit is contained in:
parent
bf0e01d779
commit
9b6d2f8a25
|
@ -1,5 +1,12 @@
|
||||||
project('generator link_whole', 'c')
|
project('generator link_whole', 'c')
|
||||||
|
|
||||||
|
cc = meson.get_compiler('c')
|
||||||
|
if cc.get_id() == 'msvc'
|
||||||
|
if cc.version().version_compare('<19')
|
||||||
|
error('MESON_SKIP_TEST link_whole only works on VS2015 or newer.')
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# This just generates foo.h and foo.c with int foo() defined.
|
# This just generates foo.h and foo.c with int foo() defined.
|
||||||
gen_py = find_program('generator.py')
|
gen_py = find_program('generator.py')
|
||||||
gen = generator(gen_py,
|
gen = generator(gen_py,
|
||||||
|
|
Loading…
Reference in New Issue