diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 6a06c53c..daac4735 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -239,9 +239,9 @@ def setup_python(python_configuration: PythonConfiguration, def build(options: BuildOptions) -> None: allowed_archs = {Architecture.x86_64, Architecture.universal2, Architecture.arm64} - if set(options.architectures) <= allowed_archs: + if any(a not in allowed_archs for a in options.architectures): raise ValueError(textwrap.dedent(f''' - Invalid archs option {options.architectures}. macOS only supports + Invalid archs option {[a.value for a in options.architectures]}. macOS only supports these architectures: {', '.join(a.value for a in allowed_archs)}. '''))