File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,16 @@ endif()
58
58
59
59
set (ZIG_CPP_LIB_DIR "${CMAKE_BINARY_DIR} /zig_cpp" )
60
60
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
+
61
71
if (ZIG_FORCE_EXTERNAL_LLD)
62
72
find_package (lld)
63
73
include_directories (${LLVM_INCLUDE_DIRS} )
@@ -253,7 +263,6 @@ else()
253
263
embedded_lld_wasm
254
264
embedded_lld_lib
255
265
)
256
- install (TARGETS embedded_lld_elf embedded_lld_coff embedded_lld_mingw embedded_lld_wasm embedded_lld_lib DESTINATION "${ZIG_CPP_LIB_DIR} " )
257
266
endif ()
258
267
259
268
# No patches have been applied to SoftFloat-3e
Original file line number Diff line number Diff line change 6
6
if [ " ${BUILD_REASON} " != " PullRequest" ]; then
7
7
cd " $ZIGBUILDDIR "
8
8
9
- rm release/* .lib release/ * . exe
9
+ rm release/* .exe
10
10
mv ../LICENSE release/
11
11
mv ../zig-cache/langref.html release/
12
12
mv release/bin/zig.exe release/
You can’t perform that action at this time.
0 commit comments