Skip to content

Commit 439ea59

Browse files
author
Matthias Koeppe
committed
build/pkgs/meson_python/patches: Add mesonbuild/meson-python#339
1 parent db10e0f commit 439ea59

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
commit caa435144b1b4fa40c51558f15fd8dae2c0b5868
2+
Author: Matthias Koeppe <[email protected]>
3+
Date: Sat Mar 11 10:16:56 2023 -0800
4+
5+
BUG: handle ARCHFLAGS set to the empty string
6+
7+
diff --git a/mesonpy/__init__.py b/mesonpy/__init__.py
8+
index e312059..d798f4c 100644
9+
--- a/mesonpy/__init__.py
10+
+++ b/mesonpy/__init__.py
11+
@@ -686,8 +686,8 @@ class Project():
12+
13+
# setuptools-like ARCHFLAGS environment variable support
14+
if sysconfig.get_platform().startswith('macosx-'):
15+
- archflags = self._env.get('ARCHFLAGS')
16+
- if archflags is not None:
17+
+ archflags = self._env.get('ARCHFLAGS', '').strip()
18+
+ if archflags:
19+
arch, *other = filter(None, (x.strip() for x in archflags.split('-arch')))
20+
if other:
21+
raise ConfigError(f'Multi-architecture builds are not supported but $ARCHFLAGS={archflags!r}')

0 commit comments

Comments
 (0)