summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Tang <tangalbert919@yahoo.com>2023-08-21 10:13:05 -0500
committerEli Schwartz <eschwartz93@gmail.com>2023-09-26 02:34:45 -0400
commitfb6fd5aa1770970e94968b302dfe3026aa08e245 (patch)
tree91f459d82af80406ded08c564c2a3c59aeca4378
parentb6b68d7ee687682ce529617e8ace48b582d0dbf1 (diff)
downloadmeson-fb6fd5aa1770970e94968b302dfe3026aa08e245.tar.gz
tests: Skip "withIncludeFile" for PCH on Xcode backend
Xcode always fails here because this makes the PCH not be the first included header, causing Xcode to ignore it completely. There is no way around this.
-rw-r--r--test cases/common/13 pch/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/test cases/common/13 pch/meson.build b/test cases/common/13 pch/meson.build
index 4bb3e1f27..d83291963 100644
--- a/test cases/common/13 pch/meson.build
+++ b/test cases/common/13 pch/meson.build
@@ -13,7 +13,11 @@ subdir('cpp')
subdir('generated')
subdir('userDefined')
subdir('withIncludeDirectories')
-subdir('withIncludeFile')
+if meson.backend() == 'xcode'
+ warning('Xcode backend does not support forced includes. Skipping "withIncludeFile" which requires this.')
+else
+ subdir('withIncludeFile')
+endif
if meson.backend() == 'xcode'
warning('Xcode backend only supports one precompiled header per target. Skipping "mixed" which has various precompiled headers.')