Skip to content

Commit

Permalink
BUG: handle ARCHFLAGS set to the empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe authored and dnicolodi committed Mar 11, 2023
1 parent 8060e82 commit 7e37525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,8 @@ def __init__(

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

0 comments on commit 7e37525

Please sign in to comment.