aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/dependencies/base.py')
-rw-r--r--mesonbuild/dependencies/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py
index 0a02816..805c575 100644
--- a/mesonbuild/dependencies/base.py
+++ b/mesonbuild/dependencies/base.py
@@ -1322,6 +1322,11 @@ class ExtraFrameworkDependency(ExternalDependency):
self.link_args = ['-F' + self.path, '-framework', self.name.split('.')[0]]
def detect(self, name, path):
+ # should use the compiler to look for frameworks, rather than peering at
+ # the filesystem, so we can also find them when cross-compiling
+ if self.want_cross:
+ return
+
lname = name.lower()
if path is None:
paths = ['/System/Library/Frameworks', '/Library/Frameworks']