Skip to content

build: restore clang++/libc++ toolchain config for public repo - #19

Closed
Garfee023 wants to merge 1 commit into
mainfrom
feat/build-toolchain-restore
Closed

Garfee023 wants to merge 1 commit into
mainfrom
feat/build-toolchain-restore

Conversation

@Garfee023

Copy link
Copy Markdown
Contributor

Summary

The public repo ships a libc++-built LLVM in extern/llvm-project, but commit 66aa348 cherry-picked the internal gcc/libstdc++ toolchain config into the public tree, which breaks the build (unable to find library -lstdc++fs).

What this does

  • Pins the build to the bundled clang++ with -stdlib=libc++ (Makefile + CMake).
  • Adds -fno-rtti -fno-exceptions to match the prebuilt LLVM (with -frtti -fexceptions on the bison-generated parser and choreo driver, which require them).
  • Drops the stdc++fs link (libc++ provides std::filesystem natively; libstdc++fs is neither present nor ABI-compatible).

Test plan

make test-debug builds and runs green with this applied. The MARA B1 fence PR (#18) depends on this to build.

Commit 66aa348 cherry-picked the internal gcc/libstdc++ toolchain config
into the public repo, which ships a libc++-built LLVM. Restore the
clang++/libc++ flags, -fno-rtti/-fno-exceptions, and drop the stdc++fs
link that has no libstdc++fs in this toolchain.
@Garfee023 Garfee023 closed this Sep 3, 2026
@Garfee023
Garfee023 deleted the feat/build-toolchain-restore branch September 3, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant