Skip to content

Build cppinterop-tblgen as part of Emscripten build - #1187

Open
mcbarton wants to merge 1 commit into
compiler-research:mainfrom
mcbarton:no-separate-tblgen
Open

mcbarton wants to merge 1 commit into
compiler-research:mainfrom
mcbarton:no-separate-tblgen

Conversation

@mcbarton

Copy link
Copy Markdown
Collaborator

With this change the Emscripten build is simplified, by having the cppinterop-tblgen generated as part of the Emscripten build, rather than separately.

@mcbarton
mcbarton force-pushed the no-separate-tblgen branch 2 times, most recently from 8b91850 to ff1e1d8 Compare November 25, 2026 19:48
@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.86%. Comparing base (3ab124a) to head (c213508).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1187   +/-   ##
=======================================
  Coverage   88.86%   88.86%           
=======================================
  Files          24       24           
  Lines        7014     7014           
=======================================
  Hits         6233     6233           
  Misses        781      781           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines -98 to 93
-DLLVM_NATIVE_TOOL_DIR=$NATIVE_LLVM_BIN_DIR \
-DCMAKE_C_FLAGS_RELEASE="-Oz -g0 -DNDEBUG -mno-tail-call" \
-DCMAKE_CXX_FLAGS_RELEASE="-Oz -g0 -DNDEBUG -mno-tail-call" \
-DCMAKE_EXE_LINKER_FLAGS="-mno-tail-call" \
-DLLVM_ENABLE_LTO=Full \
-DCROSS_TOOLCHAIN_FLAGS_NATIVE="-DCMAKE_C_COMPILER=clang;-DCMAKE_CXX_COMPILER=clang++" \
../llvm

@mcbarton mcbarton Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vgvassilev Getting the ci to go green in this PR would involve a change the llvm-wasm recipe in ci-workflows to remove using LLVM_NATIVE_TOOL_DIR, and change it to use CROSS_TOOLCHAIN_FLAGS_NATIVE. This simple change allows us to simplify the Emscripten build quite a bit. Without it the changes to CppInterOp will not work. Are you happy with this change, and if yes, can you get your ai to make the necessary changes to the llvm-wasm recipe?

This branch has not been deployed

No deployments
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