File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ jobs:
175
175
echo "build-flang=$build_flang" >> $GITHUB_OUTPUT
176
176
case "${{ inputs.runs-on }}" in
177
177
ubuntu-22.04*|windows-2022)
178
- build_runs_on="depot-${{ inputs.runs-on }}-64 "
178
+ build_runs_on="depot-${{ inputs.runs-on }}-16 "
179
179
test_runs_on=$build_runs_on
180
180
;;
181
181
macos-13)
Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ endfunction()
30
30
#
31
31
# cmake -D LLVM_RELEASE_ENABLE_PGO=ON -C Release.cmake
32
32
33
- set (DEFAULT_PROJECTS "clang;lld;lldb;clang-tools-extra;polly;mlir;flang" )
33
+ if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Windows" )
34
+ # Reduce projects built for Windows due to 2GB installer limits.
35
+ set (DEFAULT_PROJECTS "clang;lld;lldb;clang-tools-extra" )
36
+ else ()
37
+ set (DEFAULT_PROJECTS "clang;lld;lldb;clang-tools-extra;polly;mlir;flang" )
38
+ endif ()
39
+
34
40
# bolt only supports ELF, so only enable it for Linux.
35
41
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux" )
36
42
list (APPEND DEFAULT_PROJECTS "bolt" )
@@ -143,8 +149,10 @@ endif()
143
149
# We want to generate an installer on Windows.
144
150
if (NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES "Windows" )
145
151
set_final_stage_var(CPACK_GENERATOR "TXZ" STRING )
146
- else ()
147
- set_final_stage_var(CMAKE_OBJECT_PATH_MAX "1024" STRING )
152
+ endif ()
153
+ if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Windows" )
154
+ # Limit installation size on Windows to avoid 2GB installer limt.
155
+ set_final_stage_var(LLVM_INSTALL_TOOLCHAIN_ONLY "ON" BOOL )
148
156
endif ()
149
157
set_final_stage_var(CPACK_ARCHIVE_THREADS "0" STRING )
150
158
You can’t perform that action at this time.
0 commit comments