Commit aa4c536
committed
FIX: Exclude PCM files from prefix detection on all platforms
Native linux-aarch64 builds crash with SIGSEGV in CreateInterpreter at
test time because:
1. runtime_cxxmodules defaults to ON for native builds (it was only
set to OFF inside the cross-compilation block in build_root.sh)
2. PCM files (lib/*.pcm) are LLVM bitcode that Cling loads at startup
3. prefix_detection.ignore only excluded lib/*.pcm for non-aarch64,
so on aarch64 rattler-build detected and relocated prefix strings
inside the PCM files, corrupting their bitcode structure
4. Cling segfaults when loading the corrupted PCMs
The fix makes lib/*.pcm unconditionally excluded from prefix detection,
matching the existing behavior on linux-64 where native builds with
runtime_cxxmodules=ON already work.
Also reverts the CLING_CXX_PATH change from the previous commit, as
hypothesis 1 (build-time paths) was ruled out by testing.1 parent 248e455 commit aa4c536
2 files changed
+3
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
| 335 | + | |
| 336 | + | |
347 | 337 | | |
348 | 338 | | |
349 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments