-
Notifications
You must be signed in to change notification settings - Fork 695
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
[Bazel] feature flags for the Emscripten toolchain #1400
Comments
The bazel toolchain is just a best effort level of support, maintains by member of the community. Any PRs would be most welcome I imagine. @walkingeyerobot is the de facto maintainer. (I think?) |
I would be happy to make some contributions! Is it just @walkingeyerobot that needs to sign off to get something merged? |
Somebody needs to sign off, and @walkingeyerobot is the most likely person if the PR is bazel related. If you are going to be making significant changes you might also want to discuss them here first to make sure they are in line with any plans. |
Just to test the mood about making these changes then, @walkingeyerobot would you sign off on a PR that:
|
I'm generally happy to accept PRs. More specifically:
|
Agree
Agree
What does this setting do? |
|
I see.. does bazel not a have a builtin way to do that? I guess there is no harm in keeping it around if folks are using it. Is there a way to issue deprecation warnings for settings that we might want to remove in the future (assuming this one is redundant). |
I don't believe so; I'm pretty sure it has to be set on a per-toolchain basis.
Currently no such mechanism or policy exists. |
Nitpicking, but additionally, it is a bit strange having it called Regarding |
I think its OK for most settings to simply be linker flags. The only time you really need special bazel setting is for when the setting applies to both compilation and linking. I think this is acceptable since compile-and-link settings are kind of already very different to link-only settings. Reinventing all emscripten settings as different bazel swtiches would (I think) just add extra complexity for folks trying to move between toolchains, or coming from plain emscripten. |
(There are only a handfull of compile-and-link settings so this means we don't need to add too many special bazel options) |
About |
The fact that this is on by default is also frustrating. It recently caused a test in CPython's configure script to fail, reporting that libc was broken or unavailable. |
Ok, we can turn off |
Cool. @allsey87 seems like you have a lot on your hands at the moment, I can turn |
Go for it! |
I would strongly advocate disabling I would also add |
What is the current state of the feature flags for the Emscripten toolchain? It seems like this is in a bit of a half finished state with a lot of options missing. For example:
exceptions
feature that adds either-fno-exceptions
or-fexceptions
, but no way to setfwasm-exceptions
.PROXY_TO_PTHREAD
andWASM_BIGINT
are completely missingwasm_warnings_as_errors
which just sets-Werror
and seems on by default? I mean, this feature has nothing to do WebAssembly or Emscripten and doesn't seem like it should exist in the toolchain at all?Is there interest in cleaning this up via some PRs?
The text was updated successfully, but these errors were encountered: