Skip to content

Commit

Permalink
build: do not link with libcmtd
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Dec 8, 2024
1 parent 7211347 commit 48f7029
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChewingTextService/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ target_link_libraries(ChewingTextService
target_link_options(ChewingTextService
PRIVATE /NODEFAULTLIB:MSVCRT
PRIVATE /NODEFAULTLIB:MSVCRTD
PRIVATE /NODEFAULTLIB:LIBCMTD
)
2 changes: 2 additions & 0 deletions scripts/build_installer.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set RUSTFLAGS=-Ctarget-feature=+crt-static

cmake -B build\x86 -A Win32 -DBUILD_TESTING=OFF -DVCPKG_TARGET_TRIPLET=x86-windows-static
cmake --build build\x86 --config Release
cmake -B build\x64 -A x64 -DBUILD_TESTING=OFF -DVCPKG_TARGET_TRIPLET=x64-windows-static
Expand Down
2 changes: 2 additions & 0 deletions scripts/build_installer_debug.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set RUSTFLAGS=-Ctarget-feature=+crt-static

cmake -B build\x86 -A Win32 -DBUILD_TESTING=OFF -DVCPKG_TARGET_TRIPLET=x86-windows-static
cmake --build build\x86 --config Debug
cmake -B build\x64 -A x64 -DBUILD_TESTING=OFF -DVCPKG_TARGET_TRIPLET=x64-windows-static
Expand Down

0 comments on commit 48f7029

Please sign in to comment.