Skip to content

Replace DEFAULT_SYSROOT usage with Clang config files#503

Merged
sunfishcode merged 1 commit intoWebAssembly:mainfrom
carlocab:use-config-files
Dec 12, 2024
Merged

Replace DEFAULT_SYSROOT usage with Clang config files#503
sunfishcode merged 1 commit intoWebAssembly:mainfrom
carlocab:use-config-files

Conversation

@carlocab
Copy link
Copy Markdown
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
Copy Markdown
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
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