Skip to content

Commit b96fc43

Browse files
committed
Add Windows i686 cross build
1 parent d6c4198 commit b96fc43

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.github/workflows/CrossBuilds.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ jobs:
8080
packages: 'gcc-powerpc64-linux-gnu g++-powerpc64-linux-gnu binutils-powerpc64-linux-gnu libc6-dev-ppc64-cross qemu-user-static',
8181
cross_file: 'cross_configs/linux_ppc64_ubuntu24.cmake',
8282
}
83+
- {
84+
name: '[BUILD ONLY] Windows i686 mingw',
85+
os: ubuntu-24.04,
86+
arch: x64,
87+
build-system: 'cmake',
88+
diet-build: 'OFF',
89+
build_type: 'Debug',
90+
diet_build: false,
91+
skip_tests: true,
92+
packages: 'gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools',
93+
cross_file: 'cross_configs/windows_i686_ubuntu24.cmake',
94+
}
8395
- {
8496
name: '[BUILD ONLY] Android 35 (arm64_v8a) NDK 29',
8597
os: ubuntu-24.04,
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This example file is for builds on Ubunutu 24.04.
2+
set(CMAKE_SYSTEM_NAME Windows)
3+
set(CMAKE_SYSTEM_PROCESSOR i686)
4+
5+
set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
6+
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
7+
set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
8+
9+
set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
10+
11+
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
12+
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
13+
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

tests/MC/AArch64/basic-a64-instructions.s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4839,7 +4839,7 @@ test_cases:
48394839
expected:
48404840
insns:
48414841
-
4842-
asm_text: "cbnz x3, #-4"
4842+
asm_text: "cbnz x3, #0xfffffffffffffffc"
48434843

48444844
-
48454845
input:

0 commit comments

Comments
 (0)