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

Replace DEFAULT_SYSROOT usage with Clang config files #503

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

carlocab
Copy link
Contributor

Upstream want to deprecate DEFAULT_SYSROOT123, but one
blocker is wasi-sdk's usage of it.

Let's try to help that along by switching to using config files4
instead.

This should result in no user-facing changes in functionality. (If it
does, then that's an LLVM bug that should be fixed there.)

Footnotes

  1. https://reviews.llvm.org/D158218

  2. https://github.com/llvm/llvm-project/issues/94284

  3. https://github.com/llvm/llvm-project/pull/77537

  4. https://clang.llvm.org/docs/UsersManual.html#configuration-files

Upstream want to deprecate `DEFAULT_SYSROOT`[^1][^2][^3], but one
blocker is wasi-sdk's usage of it.

Let's try to help that along by switching to using config files[^4]
instead.

This should result in no user-facing changes in functionality. (If it
does, then that's an LLVM bug that should be fixed there.)

[^1]: https://reviews.llvm.org/D158218
[^2]: llvm/llvm-project#94284
[^3]: llvm/llvm-project#77537
[^4]: https://clang.llvm.org/docs/UsersManual.html#configuration-files
@sunfishcode
Copy link
Member

Cool, the fewer magical configuration settings we have to bake into the binaries, the better.

@sunfishcode sunfishcode enabled auto-merge (squash) December 12, 2024 17:23
@sunfishcode sunfishcode merged commit a4d918f into WebAssembly:main Dec 12, 2024
8 checks passed
@carlocab carlocab deleted the use-config-files branch December 12, 2024 19:45
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