-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
WIP: switch emscripten backend to llvm #44846
Conversation
@kripken I kicked off, but not sure I understand the whole build process. resource blocks is just download them. later we put them to the paths under workdir (emscripten-core/emscripten) homebrew-core/Formula/emscripten.rb Lines 82 to 83 in ef7aa9b
If there are approximate list of shell commands I can translate it to brew. |
But I'm not sure if all these deps are actually required at runtime. You might only need Yeah, So whats need to be done here is to build the specific commits of |
Correct @chrmoritz, fastcomp is only needed for the old backend. Yes, in general you just need builds of llvm and binaryen. And also there is a dependency on node.js and python. (Optionally Java for closure compiler too.) I wonder, btw, if it's possible to wrap around the emsdk for this? Getting the latest emsdk and running
will get everything from our build infrastructure, and store it in under that directory. Then you can just use llvm, binaryen, emcc, etc. from there. That seems simple, and also those builds are what is constantly tested by us, and we have full mac, linux etc. support. Is brew wrapping around the emsdk like that an option? |
I think this wouldn't be possible in homebrew, because it installs precompiled binaries, which isn't acceptable for a core formula. @igas I've also tried to make it working and here is my progress so far: chrmoritz@7cff243. Not sure what |
@chrmoritz I'm happy for you to take over this as it's not my area of expertise at all 😅 closest thing to the compiled languages I worked with was erlang ^_^ |
I'm not so familiar with all the But except figuring out the best args passed to |
@BrewTestBot test this please! |
Is this PR still active? I want to make a commit solving #47869 but it looks like handling formula will make conflict. |
What about providing emsdk formula instead emscripten and then make user to install emscripten, like haskell-stack do? |
Why not building a minimal If you want you could take over where I stopped in chrmoritz@7cff243 (but you will still have to improve the args passed to |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?