aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-04-30 16:38:10 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-05-10 13:38:20 -0700
commit73eca8255b4c89a11f21fee3708269bcac6942bb (patch)
tree08cbb3e7d7745ae6fa753b84dcbf6a4c32243cf8
parentc72fd1e33336b06a3d9ebe8ac52eb74aa057ecfb (diff)
downloadmeson-73eca8255b4c89a11f21fee3708269bcac6942bb.zip
meson-73eca8255b4c89a11f21fee3708269bcac6942bb.tar.gz
meson-73eca8255b4c89a11f21fee3708269bcac6942bb.tar.bz2
run_unittests: Don't assume that VS like compilers have MSVC versions
-rwxr-xr-xrun_unittests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 8fe1fd5..9f6075b 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -981,7 +981,7 @@ class InternalTests(unittest.TestCase):
toolset_ver = cc.get_toolset_version()
self.assertIsNotNone(toolset_ver)
# Visual Studio 2015 and older versions do not define VCToolsVersion
- if int(''.join(cc.version.split('.')[0:2])) < 1910:
+ if cc.id == 'msvc' and int(''.join(cc.version.split('.')[0:2])) < 1910:
return
self.assertIn('VCToolsVersion', os.environ)
vctools_ver = os.environ['VCToolsVersion']