diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-12-29 21:42:36 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-12-29 21:42:36 +0200 |
commit | a9dfd192262c6075e195a32c51ac3f2b28080794 (patch) | |
tree | 33aff19ae80efa63bf0082f1c15edb0c05c04f65 | |
parent | 7a9a9e4a99f107b4bc36b276d6e51f7e3f6e1a69 (diff) | |
download | meson-a9dfd192262c6075e195a32c51ac3f2b28080794.zip meson-a9dfd192262c6075e195a32c51ac3f2b28080794.tar.gz meson-a9dfd192262c6075e195a32c51ac3f2b28080794.tar.bz2 |
Only do module scanning if C++ version is latest.modulestricter
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index b9be80f..b847c2c 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -890,6 +890,8 @@ int dummy; cpp = target.compilers['cpp'] if cpp.get_id() != 'msvc': return False + if self.environment.coredata.compiler_options[target.for_machine]['cpp']['std'] != 'c++latest': + return False if not mesonlib.current_vs_supports_modules(): return False if mesonlib.version_compare(cpp.version, '<19.28.28617'): |