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-20 18:31:40 +0300
commit270e96452fa89da85b79e379a34fcecdb42b9fa7 (patch)
tree1b2e379384107a4a15c74ccc9c2db4d662cf1bbf
parent45fc13c628531c9773da42faf004f1549ac4ff42 (diff)
downloadmeson-270e96452fa89da85b79e379a34fcecdb42b9fa7.zip
meson-270e96452fa89da85b79e379a34fcecdb42b9fa7.tar.gz
meson-270e96452fa89da85b79e379a34fcecdb42b9fa7.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)