Skip to content

Commit 7e37525

Browse files
mkoeppednicolodi
authored andcommitted
BUG: handle ARCHFLAGS set to the empty string
1 parent 8060e82 commit 7e37525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mesonpy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ def __init__(
686686

687687
# setuptools-like ARCHFLAGS environment variable support
688688
if sysconfig.get_platform().startswith('macosx-'):
689-
archflags = self._env.get('ARCHFLAGS')
690-
if archflags is not None:
689+
archflags = self._env.get('ARCHFLAGS', '').strip()
690+
if archflags:
691691
arch, *other = filter(None, (x.strip() for x in archflags.split('-arch')))
692692
if other:
693693
raise ConfigError(f'Multi-architecture builds are not supported but $ARCHFLAGS={archflags!r}')

0 commit comments

Comments
 (0)