From a718f1a334b798dac739f93d1f2832c99609cdd6 Mon Sep 17 00:00:00 2001
From: Jussi Pakkanen <jpakkane@gmail.com>
Date: Sat, 8 Apr 2017 22:11:57 +0300
Subject: [PATCH] Skip test on VS earlier than 2015.

---
 test cases/common/145 whole archive/meson.build | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test cases/common/145 whole archive/meson.build b/test cases/common/145 whole archive/meson.build
index 64a0669b6..eadebf8bd 100644
--- a/test cases/common/145 whole archive/meson.build	
+++ b/test cases/common/145 whole archive/meson.build	
@@ -1,5 +1,13 @@
 project('whole archive', '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
+
 stlib = static_library('allofme', 'libfile.c')
 
 # Nothing in dylib.c uses func1, so the linker would throw it