From 5aeacb76a05de5707f8e9dccde0133dc5522bf11 Mon Sep 17 00:00:00 2001 From: Albert Tang Date: Mon, 21 Aug 2023 10:13:05 -0500 Subject: [PATCH] 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. --- test cases/common/13 pch/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.')