Commit 9e9786f
committed
fix(verify-kotlin-consumer): use hw.optional.arm64 for Rosetta-immune arch detect
sysctl -n hw.machine and uname -m both report the *process* arch, not the
hardware — so on Apple Silicon under Rosetta, both return x86_64 and the
script stages an x86_64 dylib that the native-arm64 JVM can't load (18
JNA tests fail). hw.optional.arm64 returns "1" on Apple Silicon hardware
regardless of process arch, which is the actual question.1 parent 9f76774 commit 9e9786f
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
0 commit comments