-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Speed up emcc -v
by not running sanity checks.
#13176
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
Conversation
2a50c74
to
ff59d70
Compare
A downside of this is that then there is no easy way for users to run those checks. The checks can find problems, and we sometimes tell a user to run Perhaps we should add a separate option for that, if we want to make |
We have This change has two parts. I could revert that part of this change that running the checks when |
(BTW I can't remember a time when I've found it useful that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd forgotten about EMCC_DEBUG=1
running those checks.
However, I see that our docs do use emcc -v
for these checks (by grep, and I read some of the pages to confirm). So we'd need to update those too. sgtm with that + a changelog entry.
ff59d70
to
c20110d
Compare
Added changelog and updated docs. |
@@ -17,7 +17,7 @@ Why do I get multiple errors building basic code and the tests? | |||
|
|||
All the tests in the :ref:`Emscripten test suite <emscripten-test-suite>` are known to build and pass on our test infrastructure, so if you see failures locally it is likely that there is some problem with your environment. (Rarely, there may be temporary breakage, but never on a tagged release version.) | |||
|
|||
First call ``emcc -v``, which runs basic sanity checks and prints out useful environment information. If that doesn't help, follow the instructions in :ref:`verifying-the-emscripten-environment`. | |||
First call ``emcc -v``, prints out useful environment information. If that doesn't help, follow the instructions in :ref:`verifying-the-emscripten-environment`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another key doc I think we should update is the one linked to here, which goes to a section titled "Sanity tests", in site/source/docs/building_from_source/verify_emscripten_environment.rst
. That should not mention -v
any more, and please add a mention of EMCC_DEBUG=1
in the env.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking of just leaving that sections as emcc -v
.. since that will actually run the sanity checks the first time around.
I guess maybe I will add a new option because its kind of annoying to ask folks to set the environment variable here.
9e63595
to
264fac6
Compare
Added a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--check
is a very good idea I think.
lgtm with comments.
Since some build tools run `emcc -v` regularly we want to be fast. This change avoid running sanity checks which means fewer subprocesses. On my machine this takes `emcc -v ` from ~300 ro ~200 ms. Add a new options `--check` which will force the running of sanity checks. See: #13004
264fac6
to
74926e9
Compare
ince some build tools run
emcc -v
regularly we want to be fast. Thischange avoid running sanity checks which means fewer subprocesses.
On my machine this takes
emcc -v
from ~300 ro ~200 ms.Sanity checks are still run on first use.
See: #13004