generic mingw version

This commit is contained in:
Nicolas 2025-10-07 23:20:51 +02:00
parent c7c3ad3553
commit a15bfc295e
4 changed files with 7 additions and 4 deletions

View File

@ -20,7 +20,7 @@ jobs:
gcc-12-arm-linux-gnueabihf \
gcc-12-mips-linux-gnu \
gcc-12-riscv64-linux-gnu \
gcc-12-mingw-w64-x86-64
mingw-w64
- name: Build object files
run: bash src/copapy/obj/crosscompile.sh

View File

@ -15,8 +15,7 @@ jobs:
- name: Install cross compilers
run: |
sudo apt-get update
sudo apt-get install -y \
gcc-12-mingw-w64-x86-64
sudo apt-get install -y mingw-w64
- name: Build ops obj files
run: |

View File

@ -18,11 +18,13 @@ DEST=src/copapy/obj
OPT=O3
mkdir -p $DEST
x86_64-w64-mingw32-gcc --version
# Native x86_64
gcc-12 -$OPT -c $SRC -o $DEST/stencils_x86_64_$OPT.o
# Windows x86_64 (ARM64)
x86_64-w64-mingw32-gcc -$OPT -c $SRC -o $DEST/stencils_AMD64_$OPT.o
mingw-w64 -$OPT -c $SRC -o $DEST/stencils_AMD64_$OPT.o
# ARM64
aarch64-linux-gnu-gcc-12 -$OPT -c $SRC -o $DEST/stencils_aarch64_$OPT.o

View File

@ -13,5 +13,7 @@ gcc-12 -c $SRC -O1 -o $DEST/stencils_x86_64_O1.o
gcc-12 -c $SRC -O2 -o $DEST/stencils_x86_64_O2.o
gcc-12 -c $SRC -O3 -o $DEST/stencils_x86_64_O3.o
x86_64-w64-mingw32-gcc --version
# Windows x86_64 (ARM64)
x86_64-w64-mingw32-gcc -O3 -c $SRC -o $DEST/stencils_AMD64_$OPT.o