-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(cmake): avoid really slow compile on emscripten #4642
Conversation
61822f1
to
c214752
Compare
We might want to solve this error when LTO flags are missing:
But first I'm fixing the missing LTO flag. :) |
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
af96244
to
37daa1d
Compare
@hoodmane, does this look okay? Emscripten should always use clang, which has lto & thin lto? |
Yes, and it's often a problem that configuration stuff is super slow on Emscripten so it's great to hard code things that will be true on a very recent clang. |
This is really slow on emscripten cross-compiles to WebAssembly. I think it's safe just to hard-code it when cross-compiling to emscripten. (Thoughts welcome).
Description
Suggested changelog entry: