feat: staticlly link libc

This commit is contained in:
TaurusXin 2024-03-21 14:12:20 +08:00
parent a54f25eea3
commit 3b274edd2e
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,9 @@ jobs:
- name: Build
run: cmake --build ${{ env.BUILD_PATH }} -j 4
- name: Strip
run: strip ${{ env.BUILD_PATH }}/ncmdump.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:

View File

@ -24,7 +24,7 @@ target_include_directories(ncmdump PRIVATE taglib/taglib/mpeg/id3v2)
if(WIN32)
if(CMAKE_COMPILER_IS_GNUCXX)
target_link_options(ncmdump PRIVATE -municode)
target_link_options(ncmdump PRIVATE -municode -static)
endif()
endif()