[build] Consume an external CppInterOp via find_package - #79
Merged
Conversation
guitargeek
approved these changes
Sep 4, 2026
guitargeek
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! That works for me too!
|
CppJIT CI has detected a new failure on workflow CI running on main while building f665c8a at job "macos-26-intel/llvm22/py3.12/c++20 / Build & Test", "macos-26-intel/llvm21/py3.14/c++20 / Build & Test". Full details are available at: https://github.com/compiler-research/cppjit/actions/runs/33883861337 |
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.
Supersedes #48, makes the build system robust for purely developement builds:
Development build (CMake)
The build tree runs in place; nothing is installed. CppInterOp builds
and stages inside it, and the python package assembles under
<build>/python:A prebuilt CppInterOp, either an install prefix or a build directory,
is consumed in place through
CppInterOp_DIRinstead of being rebuilt:Development build (pip editable)
Editable install with a persistent build directory; a one-file change
rebuilds incrementally:
To co-develop CppInterOp alongside cppjit, point the build at a local
checkout; it overrides the pinned tag:
Keep the checkout API-compatible with the pinned
CPPINTEROP_GIT_TAGinCMakeLists.txt.Verify the install
Run from a directory outside the checkout; the in-tree
python/cppjitshadows the installed extension:
Tests