feature test static link
Some checks failed
build-crpc / build (Debug, mingw-w64-x86_64.toolchain.cmake) (push) Failing after 29s
build-crpc / build (Debug, host.toolchain.cmake) (push) Failing after 34s
build-crpc / build (Release, mingw-w64-x86_64.toolchain.cmake) (push) Failing after 23s
build-crpc / build (Release, host.toolchain.cmake) (push) Failing after 33s

This commit is contained in:
tqcq 2023-12-03 08:14:03 +08:00
parent 07b150c166
commit adb8a82880

View File

@ -28,7 +28,13 @@ jobs:
- name: Configure CRPC
run: |
cd ${{ github.workspace }}
cmake . -Bbuild -DCMAKE_TOOLCHAIN_FILE=toolchains/${{ matrix.toolchain }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_VERBOSE_MAKEFILE=ON
# use static link
cmake . -Bbuild \
-DCMAKE_TOOLCHAIN_FILE=toolchains/${{ matrix.toolchain }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++" \
-DCMAKE_C_FLAGS="-static-libgcc -static-libstdc++"
- name: Build CRPC
run: |