Repository navigation
Commit c786f4a
authored
ci msys2: Add mruby patch for Windows ARM64 support (#2648)
GitHub: GH-2646
We add a patch to fix the following build error about mruby on Windows
ARM64 environments. The patch modifies mruby's `throw.h` to avoid using
`__builtin_setjmp` and `__builtin_longjmp` on ARM64, which are not
supported.
```
C:/a/groonga/groonga/ci/msys2/src/groonga-15.2.1/vendor/mruby-source/src/error.c:631:5: error: __builtin_setjmp is not supported for the current target
631 | MRB_TRY(&c_jmp) {
| ^~~~~~~~~~~~~~~
C:/a/groonga/groonga/ci/msys2/src/groonga-15.2.1/vendor/mruby-source/include/mruby/throw.h:44:26: note: expanded from macro 'MRB_TRY'
44 | #define MRB_TRY(buf) if (MRB_SETJMP((buf)->impl) == 0) {
| ^~~~~~~~~~~~~~~~~~~~~~~
C:/a/groonga/groonga/ci/msys2/src/groonga-15.2.1/vendor/mruby-source/include/mruby/throw.h:37:20: note: expanded from macro 'MRB_SETJMP'
37 | #define MRB_SETJMP __builtin_setjmp
| ^
4 warnings and 4 errors generated.
rake aborted!
```
ref:
https://github.com/groonga/groonga/actions/runs/19283288685/job/55138731280#step:8:936
This is a temporary workaround as the issue has already been resolved
upstream: mruby/mruby#6637.
The patch can be removed once bundled mruby is updated to a version that
includes the upstream fix.1 parent f0a9d6c commit c786f4a
2 files changed
Lines changed: 34 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
35 | 54 | | |
36 | 55 | | |
37 | 56 | | |
| |||
0 commit comments