Skip to content

Use gnu17 for clang on MacOS#138

Merged
nmburgan merged 1 commit intomainfrom
ruby_macos_fix
Apr 5, 2026
Merged

Use gnu17 for clang on MacOS#138
nmburgan merged 1 commit intomainfrom
ruby_macos_fix

Conversation

@nmburgan
Copy link
Copy Markdown
Member

@nmburgan nmburgan commented Apr 5, 2026

Newer Xcode (16+) defaults clang to -std=gnu23 and C23 changes semantics in ways that can turn previously valid C into undefined behavior, which can cause segfaults.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • read and accepted the Developer Certificate of Origin document and added a Signed-off-by annotation to each of my commits
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

Newer Xcode (16+) defaults clang to -std=gnu23 and C23 changes semantics in ways that
can turn previously valid C into undefined behavior, which can cause segfaults.
@nmburgan nmburgan added the bug Something isn't working label Apr 5, 2026
@nmburgan nmburgan merged commit 8761ba8 into main Apr 5, 2026
4 checks passed
@nmburgan nmburgan deleted the ruby_macos_fix branch April 5, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant