diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2025-07-29 12:21:09 +0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-01 13:37:41 -0700 |
| commit | 12bebed5a13f9597476fc05d82d5c9586875ee1d (patch) | |
| tree | c70adf670f0b23fdd589b7f966842841a9c3c8a6 /mesonbuild/dependencies/python.py | |
| parent | 9c1e868b3c588a9c7269babe9381d824cb77e6b5 (diff) | |
| download | meson-12bebed5a13f9597476fc05d82d5c9586875ee1d.tar.gz | |
Use base_prefix, not prefix for iOS framework linking.
Outside of a venv, sys.prefix and sys.base_prefix are the same. However, if you're using
a virtual environment, sys.prefix points at the location of the virtual environment, not
the location of the iOS binaries. sys.base_prefix should be used to ensure that you're
always referencing the underlying install location, not the venv location.
Diffstat (limited to 'mesonbuild/dependencies/python.py')
| -rw-r--r-- | mesonbuild/dependencies/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py index 652947869..d2d9809dc 100644 --- a/mesonbuild/dependencies/python.py +++ b/mesonbuild/dependencies/python.py @@ -527,7 +527,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase): # `link_libpython` (which *shouldn't* be set, but just in case) if self.platform.startswith('ios-'): # iOS doesn't use link_libpython - it links with the *framework*. - self.link_args = ['-framework', 'Python', '-F', self.variables.get('prefix')] + self.link_args = ['-framework', 'Python', '-F', self.variables.get('base_prefix')] self.is_found = True elif self.link_libpython: # link args |
