aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2022-05-03 18:11:08 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2022-05-06 18:48:15 +0300
commiteef51fa3d60f2657d9687f99db3b5e989daef8c3 (patch)
tree75f0a410e3cd945d0e75c92a932efe2efe1370ca /mesonbuild
parent7183d9d71ee4391b2658943505b8497b58ea8bf3 (diff)
downloadmeson-eef51fa3d60f2657d9687f99db3b5e989daef8c3.zip
meson-eef51fa3d60f2657d9687f99db3b5e989daef8c3.tar.gz
meson-eef51fa3d60f2657d9687f99db3b5e989daef8c3.tar.bz2
Add some scaffolding needed for C++ modules in GCC.
Further work pending GCC bug #105467 and/or Ninja bug #1962.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 1720138..35c14ee 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -913,6 +913,8 @@ class NinjaBackend(backends.Backend):
return True
if 'cpp' not in target.compilers:
return False
+ if '-fmodules-ts' in target.extra_args.get('cpp', []):
+ return True
# Currently only the preview version of Visual Studio is supported.
cpp = target.compilers['cpp']
if cpp.get_id() != 'msvc':