Cross-compile GCC, GNU Binutils, and libc++ to wasm32-wasi#162
Merged
rennergade merged 27 commits intomainfrom Apr 8, 2026
Merged
Cross-compile GCC, GNU Binutils, and libc++ to wasm32-wasi#162rennergade merged 27 commits intomainfrom
rennergade merged 27 commits intomainfrom
Conversation
Member
|
This contains huge amount of files, and my GitHub web failed on loading all of them. Could we separate source and script to different prs? |
Contributor
Author
Makes sense, merged binutils source separately. Fixed now. |
Yaxuan-w
requested changes
Mar 29, 2026
Member
Yaxuan-w
left a comment
There was a problem hiding this comment.
Awesome! Overall makes sense to me. Left a few comments
Yaxuan-w
approved these changes
Apr 7, 2026
vidyalakshmir
approved these changes
Apr 8, 2026
rishabhBudhouliya
pushed a commit
that referenced
this pull request
Apr 21, 2026
* compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * fix localtime timespec * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * compilation scripts for gcc and libcpp * add binutils * add binutils * add binutils * address pr comments * pr fixes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds build scripts and Makefile integration for cross-compiling a complete C compilation toolchain to run inside the Lind sandbox: GCC 15.2.0 (cc1), GNU Binutils 2.46.0 (ld, as), and LLVM libc++/libc++abi. Together these provide the full preprocess → compile → assemble → link pipeline targeting x86_64-linux-gnu from within WASI.
libc++ (llvm-project/compile_libcxx.sh)
GCC (gcc/compile_gcc.sh)
Binutils (binutils/compile_binutils.sh)
Makefile
Key technical details