Skip to content

Commit ad959a9

Browse files
committed
Update build-windows-toolchain.bat
Update `build-windows-toolchain.bat` to build IndexStoreDB statically. This is used in exactly one location: SourceKit-LSP. By statically linking the product we reduce the distribution set and reduce the disk size by ~50K. Dynamic: 629,248 IndexStoreDB.dll 8,943,616 sourcekit-lsp.exe Static: 9,523,200 sourcekit-lsp.exe
1 parent 6118ea5 commit ad959a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build-windows-toolchain.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ cmake --build %BuildRoot%\14 --target install || (exit /b)
588588
cmake ^
589589
-B %BuildRoot%\15 ^
590590

591-
-D BUILD_SHARED_LIBS=YES ^
591+
-D BUILD_SHARED_LIBS=NO ^
592592
-D CMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE% ^
593593
-D CMAKE_C_COMPILER=%BuildRoot%/1/bin/clang-cl.exe ^
594594
-D CMAKE_C_FLAGS="/GS- /Oy /Gw /Gy" ^

0 commit comments

Comments
 (0)