Skip whole_archive test for VS older than 2015

This commit is contained in:
Aleksey Filippov 2018-03-07 14:47:35 +00:00
parent bf0e01d779
commit 9b6d2f8a25
1 changed files with 7 additions and 0 deletions

View File

@ -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,