Skip to content

static_assert undefined (with C11 compiler) on macOS <= 10.10 #99069

Closed
@jmroot

Description

@jmroot

Bug report

Python 3.11 fails to build on macOS 10.10 because static_assert is not defined by the libc headers, even when using a C11 compiler. A workaround like the one in place for FreeBSD is needed.

Your environment

  • CPython versions tested on: 3.11.0
  • Operating system and architecture: macOS 10.10 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-mactype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions