Skip to content

Add generic musl arch headers. NFC. - #13280

Merged
sbc100 merged 1 commit into
masterfrom
generic_musl_headers
Jan 19, 2021
Merged

sbc100 merged 1 commit into
masterfrom
generic_musl_headers

Conversation

@sbc100

@sbc100 sbc100 commented Jan 18, 2021 •

Copy link
Copy Markdown
Collaborator

This allows us to then remove some of our emscripten-specific
arch headers that are no longer needed (since they do not
differ from the generic version).

This is part of making musl updates easier.

See #7279

@sbc100
sbc100 requested a review from aheejin January 18, 2021 17:15
@@ -0,0 +1,134 @@
#define EPERM 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems we have also errno.h in musl/arch/emscripten/bits? Do we not remove the emscripten version? The same for other added files, such as fcntl.h, fenv.h, shm.h, and termios.h.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No, the idea is that we have all the generic headers in arch/generic, and then we override just some of them with headers in arch/emscirpten. This is how the musl header layout works. At install time any emscripten-specific headers will overwrite the generic one.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the explanation!

This allows us to then remove some of our emscripten-specific
arch headers that are not longer needed (since they do not
differ from the generic version).

This is part of making musl updates easier.

See #7279
@sbc100
sbc100 force-pushed the generic_musl_headers branch from cef31e3 to 87e5e2f Compare January 18, 2021 17:44
@sbc100

sbc100 commented Jan 18, 2021

Copy link
Copy Markdown
Collaborator Author

I should have mentioned that the contents of the generic directory comes directly from musl with no changes.

@sbc100
sbc100 merged commit 39c848c into master Jan 19, 2021
@sbc100
sbc100 deleted the generic_musl_headers branch January 19, 2021 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants