diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-12-08 11:53:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-12-08 11:53:03 +0200 |
commit | 924baeff837ea5b6fde5f6207991ccd2bb807d9a (patch) | |
tree | 6f837ff7701241f32fade71eb25dc3c76c9a90f8 /tests/cc/modules/common.testscript | |
parent | 94474015352361f35d08d2850cfa710e93856313 (diff) |
Only enable modules tests for MSVC 17.6 and later
Diffstat (limited to 'tests/cc/modules/common.testscript')
-rw-r--r-- | tests/cc/modules/common.testscript | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/cc/modules/common.testscript b/tests/cc/modules/common.testscript index 801cf02..f430f8a 100644 --- a/tests/cc/modules/common.testscript +++ b/tests/cc/modules/common.testscript @@ -25,8 +25,10 @@ cxx.features.symexport = true # Note: there are some issues with enabling modules in Apple Clang 15 so # for now we only test vanilla Clang. # -if ($cxx.id == 'gcc' || \ - $cxx.id == 'msvc' || \ +if ($cxx.id == 'gcc' || \ + ($cxx.id == 'msvc' && ($cxx.version.major > 19 || \ + ($cxx.version.major == 19 && \ + $cxx.version.minor >= 36))) || \ ($cxx.id == 'clang' && $cxx.version.major >= 16)) cxx.features.modules = true |