Skip to content

Commit 8375b36

Browse files
committed
Update cmake.yml
1 parent 98a261e commit 8375b36

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
binutils-i686-linux-gnu \
2525
gcc-i686-linux-gnu \
2626
libgcc-s1-i386-cross \
27+
gcc-multilib \
2728
wget
2829
2930
- name: Cache AI Model
@@ -43,8 +44,12 @@ jobs:
4344
run: |
4445
mkdir -p build
4546
cd build
46-
# Force the assembler and compiler to 32-bit mode
47-
cmake .. -DCMAKE_ASM_NASM_FLAGS="-f elf32" -DCMAKE_C_FLAGS="-m32"
47+
# Use the cross-compiler explicitly and force 32-bit mode
48+
cmake .. \
49+
-DCMAKE_C_COMPILER=i686-linux-gnu-gcc \
50+
-DCMAKE_ASM_NASM_COMPILER=nasm \
51+
-DCMAKE_ASM_NASM_FLAGS="-f elf32" \
52+
-DCMAKE_C_FLAGS="-m32"
4853
make
4954
5055
- name: Verify Kernel Architecture

0 commit comments

Comments
 (0)