Skip to content

Commit 81767a6

Browse files
tiehuisandrewrk
authored andcommitted
Don't install stage2 artifacts
Fixes #2220.
1 parent b4f8d68 commit 81767a6

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CMakeLists.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ endif()
5858

5959
set(ZIG_CPP_LIB_DIR "${CMAKE_BINARY_DIR}/zig_cpp")
6060

61+
# Handle multi-config builds and place each into a common lib. The VS generator
62+
# for example will append a Debug folder by default if not explicitly specified.
63+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${ZIG_CPP_LIB_DIR})
64+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ZIG_CPP_LIB_DIR})
65+
foreach(CONFIG_TYPE ${CMAKE_CONFIGURATION_TYPES})
66+
string(TOUPPER ${CONFIG_TYPE} CONFIG_TYPE)
67+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CONFIG_TYPE} ${ZIG_CPP_LIB_DIR})
68+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CONFIG_TYPE} ${ZIG_CPP_LIB_DIR})
69+
endforeach(CONFIG_TYPE CMAKE_CONFIGURATION_TYPES)
70+
6171
if(ZIG_FORCE_EXTERNAL_LLD)
6272
find_package(lld)
6373
include_directories(${LLVM_INCLUDE_DIRS})
@@ -253,7 +263,6 @@ else()
253263
embedded_lld_wasm
254264
embedded_lld_lib
255265
)
256-
install(TARGETS embedded_lld_elf embedded_lld_coff embedded_lld_mingw embedded_lld_wasm embedded_lld_lib DESTINATION "${ZIG_CPP_LIB_DIR}")
257266
endif()
258267

259268
# No patches have been applied to SoftFloat-3e

ci/azure/windows_upload

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66
if [ "${BUILD_REASON}" != "PullRequest" ]; then
77
cd "$ZIGBUILDDIR"
88

9-
rm release/*.lib release/*.exe
9+
rm release/*.exe
1010
mv ../LICENSE release/
1111
mv ../zig-cache/langref.html release/
1212
mv release/bin/zig.exe release/

0 commit comments

Comments
 (0)