Skip to content

Commit a2009d4

Browse files
FIX Optimizing the size of LLVM Windows building.
1 parent 0cd41dd commit a2009d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

targets/x86_64-pc-windows-libcmt/build.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,17 @@ exit -1
1919

2020
mkdir llvm\build
2121
cd llvm\build
22+
2223
cmake .. %LLVM_CMAKE_CONFIGURE_FLAGS%
2324
cmake --build . %CMAKE_BUILD_FLAGS%
2425
cmake --build . --target install %CMAKE_BUILD_FLAGS%
2526

27+
for %%f in ("bin\*.exe") do (
28+
if /i not "%%~nxf" == "llvm-config.exe" (
29+
del "%%f"
30+
)
31+
)
32+
2633
cd %THIS_DIR%
2734

2835
7z a -tzip %GITHUB_WORKSPACE%\%LLVM_RELEASE_FILE% %LLVM_RELEASE_NAME%

0 commit comments

Comments
 (0)