Repository navigation
Commit 470e2ef
Emery Conrad
[build] Add a Bazel build: shared module, standalone pin, layout parity
Move the shared cppjit_bazel module out of the archived cppyy repo, add
a root Bazel build that mirrors the CMake/wheel layout, and restore the
best-effort CI job.
- bazel/: the shared module (copts, the @llvm extension, the wheel-layout
staging rule, the test macros) as its own Bazel module.
- Root build: one merged cc_shared_library links into
python/cppjit/libcppjit.so; stage_files recreates the wheel layout;
test_selflocation gates the dladdr-relative resource lookup.
- CppInterOp comes from the commit CMakeLists.txt pins, so a fresh clone
needs no sibling checkout. Only LLVM_DIR comes from the host.
- libcppjit.so expands the ${ORIGIN} token in
CPPINTEROP_EXTRA_INTERPRETER_ARGS.
- cppinterop_cc_test takes extra_tags for --test_tag_filters.
- test/test_main.py imports the cppjit_bazel path fixups. The py_test
bootstrap builds sys.path in-process, so site cannot auto-import them.
- ci: the best-effort, non-gating bazel workflow, restored from the
archived repo without the sibling clones.
Co-developed-with-the-help-of: Claude Code (Fable 5, human in the loop)1 parent 9d162d5 commit 470e2ef
21 files changed
Lines changed: 1896 additions & 0 deletions
File tree
- .github/workflows
- bazel-support
- bazel
- src/interop
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
0 commit comments