Skip to content

Commit

Permalink
fix clang
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Jan 29, 2025
1 parent f4ba2f6 commit f16e71e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,22 @@ jobs:
cd gmp-${GMP_VERSION}
if [ "${{ matrix.arch }}" = "x86" ]; then
./configure \
CC=clang CXX=clang++ \
CC="clang -m32" CXX="clang++ -m32" \
--host=i686-pc-linux-gnu \
--enable-shared --disable-static --enable-fat --enable-cxx
elif [ "${{ matrix.arch }}" = "arm64" ]; then
./configure \
CC=aarch64-linux-gnu-clang CXX=aarch64-linux-gnu-clang++ \
CC="clang --target=aarch64-linux-gnu" CXX="clang++ --target=aarch64-linux-gnu" \
--host=aarch64-linux-gnu \
--enable-shared --disable-static --enable-fat --enable-cxx
elif [ "${{ matrix.arch }}" = "arm" ]; then
./configure \
CC=arm-linux-gnueabihf-clang CXX=arm-linux-gnueabihf-clang++ \
CC="clang --target=arm-linux-gnueabihf" CXX="clang++ --target=arm-linux-gnueabihf" \
--host=arm-linux-gnueabihf \
--enable-shared --disable-static --enable-fat --enable-cxx
elif [ "${{ matrix.os }}" = "win" ]; then
./configure \
CC=x86_64-w64-mingw32-clang CXX=x86_64-w64-mingw32-clang++ \
CC="clang --target=x86_64-w64-mingw32" CXX="clang++ --target=x86_64-w64-mingw32" \
--host=x86_64-w64-mingw32 \
--enable-shared --disable-static --enable-fat --enable-cxx
else
Expand Down Expand Up @@ -129,17 +129,17 @@ jobs:
-L${{ github.workspace }}/gmp-${GMP_VERSION}/.libs \
-lgmp
elif [ "${{ matrix.arch }}" = "arm64" ]; then
aarch64-linux-gnu-clang -o factorial_gmp .github/workflows/factorial_gmp.c \
clang --target=aarch64-linux-gnu -o factorial_gmp .github/workflows/factorial_gmp.c \
-I${{ github.workspace }}/gmp-${GMP_VERSION} \
-L${{ github.workspace }}/gmp-${GMP_VERSION}/.libs \
-lgmp
elif [ "${{ matrix.arch }}" = "arm" ]; then
arm-linux-gnueabihf-clang -o factorial_gmp .github/workflows/factorial_gmp.c \
clang --target=arm-linux-gnueabihf -o factorial_gmp .github/workflows/factorial_gmp.c \
-I${{ github.workspace }}/gmp-${GMP_VERSION} \
-L${{ github.workspace }}/gmp-${GMP_VERSION}/.libs \
-lgmp
elif [ "${{ matrix.os }}" = "win" ]; then
x86_64-w64-mingw32-clang -o factorial_gmp.exe .github/workflows/factorial_gmp.c \
clang --target=x86_64-w64-mingw32 -o factorial_gmp.exe .github/workflows/factorial_gmp.c \
-I${{ github.workspace }}/gmp-${GMP_VERSION} \
-L${{ github.workspace }}/gmp-${GMP_VERSION}/.libs \
-lgmp
Expand Down

0 comments on commit f16e71e

Please sign in to comment.