Add LLVM toolchain with GCC-based sysroot#380
Draft
4og wants to merge 1 commit into
Draft
Conversation
|
The created documentation from the pull request is available at: docu-html |
4og
force-pushed
the
4og_llvm_toolchain_sysroot
branch
from
July 14, 2026 17:09
978a138 to
1463adb
Compare
4og
force-pushed
the
4og_llvm_toolchain_sysroot
branch
2 times, most recently
from
July 15, 2026 08:16
5b7e4d3 to
593fa7f
Compare
4og
force-pushed
the
4og_llvm_toolchain_sysroot
branch
from
July 15, 2026 09:27
593fa7f to
d7bb7dd
Compare
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.
Draft. Do not merge
Adds a hermetic LLVM/Clang toolchain that reuses the S-CORE GCC package's sysroot.
Clang and GCC now build against the same libc/libstdc++, giving reproducible cross-toolchain builds without a separately maintained sysroot.
Clang should use the same libc/libstdc++ as GCC. But the GCC package keeps libstdc++ (
<triple>/include/c++) and its support libs (lib/gcc) outside the sysroot, whereas under--sysrootClang only looks inusr/include/c++andusr/lib/gcc. Also,llvm.sysrootneeds the sysroot dir to be its own Bazel package.Since we can't modify the GCC package repo, the
gcc_sysrootrule builds a self-contained sysroot: it copies the bare sysroot out of the already-extracted@score_gcc_x86_64_toolchain_pkg, folds the headers and libs into it, and adds a BUILD file. Clang then finds everything from--sysrootalone.