aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-20 18:31:40 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-21 17:16:01 +0300
commitb42a5e21d0387f9f978a40c842d211e455b67557 (patch)
tree77928e17b1f53f415d5f2d69c4474f8d04c8039d
parent3f99830f74aa8d32f63eccac02ae5d6f5d9e34ad (diff)
downloadmeson-b42a5e21d0387f9f978a40c842d211e455b67557.zip
meson-b42a5e21d0387f9f978a40c842d211e455b67557.tar.gz
meson-b42a5e21d0387f9f978a40c842d211e455b67557.tar.bz2
Xcode: add target private dir to include path.
-rw-r--r--mesonbuild/backend/xcodebackend.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index 6fc6692..ce7a602 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -1406,6 +1406,7 @@ class XCodeBackend(backends.Backend):
# It is unclear what is the cwd when xcode runs. -I. does not seem to
# add the root build dir to the search path. So add an absolute path instead.
# This may break reproducible builds, in which case patches are welcome.
+ lang_cargs += compiler.get_include_args(self.get_target_private_dir_abs(target), is_system=False)
lang_cargs += self.get_build_dir_include_args(target, compiler, absolute_path=True)
lang_cargs += self.get_source_dir_include_args(target, compiler, absolute_path=True)
lang_cargs += self.get_custom_target_dir_include_args(target, compiler, absolute_path=True)