Repository navigation
Conversation
mcbarton
requested changes
Nov 30, 2026
Comment on lines
+155
to
+157
| message(FATAL_ERROR | ||
| "Cannot generate .inc files: set CPPINTEROP_TABLEGEN_EXE to a native " | ||
| "cppinterop-tblgen binary when cross-compiling.") |
Collaborator
There was a problem hiding this comment.
The need for a native tblgen executable is wrong in the case of Emscripten, where we do the cross compilation to wasm. This is proved in this PR #1187 where I build the tblgen executable using Emscripten, and run it under node.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1190 +/- ##
=======================================
Coverage 88.86% 88.86%
=======================================
Files 24 24
Lines 7014 7014
=======================================
Hits 6233 6233
Misses 781 781 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Description
Currently cross-compiled builds need a native
cppinterop-tblgenpassed asCPPINTEROP_TABLEGEN_EXE. For Emscripten there is an error asking for it, but other cross builds fail withcppinterop-tblgen: command not found.This PR treats
CPPINTEROP_TABLEGEN_EXEas a provided binary only when it is not a target, so that cross-compiling without it stops at configure time with the intended error.Found while cross-compiling ROOT 6.42 for linux-ppc64le on conda-forge.
Type of change
Testing
Configured standalone against LLVM/Clang 22.1.8: native builds generate the same commands as before; cross-compiling without
CPPINTEROP_TABLEGEN_EXEnow stops at configure time with the error above; with-DCPPINTEROP_TABLEGEN_EXE=<path>the given binary is used.Checklist