Skip to content

Fix runtime5 on macOS x86 #4008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2025
Merged

Fix runtime5 on macOS x86 #4008

merged 1 commit into from
May 16, 2025

Conversation

nmatschke
Copy link
Contributor

I had to tweak a couple files to get runtime5 building on my 2019 Intel MacBook Pro.

In signals.c, I put max_size_t behind an #ifdef __linux__ since it's only used in an #ifdef __linux__ block below.

In signals_nat.c, I modified some code manipulating an mcontext_t in accordance with runtime4/signals_osdep.h and put it behind an #ifdef SYS_macosx.

With these changes, I was able to build and install the compiler with --enable-runtime5.

Screenshot 2025-05-15 at 22 06 53

@mshinwell mshinwell changed the title Fix runtime5 on macOS Fix runtime5 on macOS x86 May 16, 2025
Copy link
Collaborator

@mshinwell mshinwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ok (although we haven't been considering x86 macOS as a fully supported platform any more).

@mshinwell mshinwell merged commit df625e4 into main May 16, 2025
28 checks passed
@mshinwell mshinwell deleted the fix-runtime5-macosx branch May 16, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants