mirror of https://github.com/Nonannet/copapy.git
generic mingw version
This commit is contained in:
parent
c7c3ad3553
commit
a15bfc295e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue