Skip to content

Commit 9f87718

Browse files
[debug] Run the unit suite under the ARM64 JIT in lldb
1 parent d8f8cf7 commit 9f87718

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: debug arm64 jit
2+
# Throwaway: runs Haxe's unit suite under the cppia JIT on Apple Silicon in lldb
3+
on:
4+
push:
5+
branches: ['debug/arm64-jit']
6+
jobs:
7+
mac:
8+
runs-on: macos-latest
9+
timeout-minutes: 40
10+
env:
11+
HXCPP_COMPILE_CACHE: ${{ github.workspace }}/.hxcpp-cache
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: ./.github/workflows/setup
15+
with:
16+
haxe: 4.3.7
17+
- uses: ./.github/workflows/haxe-tests
18+
with:
19+
haxe: 4.3.7
20+
- name: build
21+
working-directory: haxe/tests/unit
22+
run: |
23+
haxe compile-cppia-host.hxml -D HXCPP_ARM64
24+
haxe compile-cppia.hxml -D no_http
25+
- name: run under lldb
26+
working-directory: haxe/tests/unit
27+
run: |
28+
lldb --batch -o "process handle SIGSEGV SIGBUS -s true -p false" -o run \
29+
-k "bt 40" -k "register read" -k "disassemble -p -c 16" -k "image lookup -v -a \$pc" \
30+
-k "memory region \$pc" -k "memory region \$sp" \
31+
-- bin/cppia/Host-debug bin/unit.cppia -jit 2>&1 | tail -250

0 commit comments

Comments
 (0)