Skip to content
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

Support for musl-based Linux #273

Merged
merged 2 commits into from
Feb 6, 2023
Merged

Conversation

petermz
Copy link
Contributor

@petermz petermz commented Feb 3, 2023

A couple of fixes related to musl-based Linux support:

  • Changed the order in which OS attributes are examined: most specific variant should come first, e.g. linux-musl, then linux, then <others>
  • Added -Wno-error=cpp for linux-musl so that it doesn't complain about nonstandard headers such as <sys/errno.h>

This is needed to take advantage of oracle/graal#3141

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 3, 2023
@gilles-duboscq
Copy link
Member

Wouldn't it be better to include <errno.h>?
/cc @tkrodriguez

@petermz
Copy link
Contributor Author

petermz commented Feb 3, 2023

They should be interchangeable on Linux (same for poll.h, signal.h etc), but I'm not sure about Windows and Darwin

@gilles-duboscq
Copy link
Member

Looks like that should be fine for Windows and a quick check on a macOS machine shows that it has /usr/include/errno.h (and /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/errno.h)

@gilles-duboscq
Copy link
Member

I'll start integrating that. I'll take care of bumping the mx version number.

@graalvmbot graalvmbot merged commit 2462ba4 into graalvm:master Feb 6, 2023
@gilles-duboscq
Copy link
Member

You can now depend on the updated behaviour by requesting a minimal mx version of 6.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants