File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ function(vcpkg_execute_build_process)
7171 set (log_out "${log_prefix} -out.log" )
7272 set (log_err "${log_prefix} -err.log" )
7373 set (all_logs "${log_out} " "${log_err} " )
74- set (log_collection "${CURRENT_BUILDTREES_DIR} /logs.txt" )
7574
7675 execute_process (
7776 COMMAND ${arg_COMMAND}
@@ -151,7 +150,7 @@ function(vcpkg_execute_build_process)
151150 if (NOT log_size EQUAL "0" )
152151 file (TO_NATIVE_PATH "${log} " native_log )
153152 string (APPEND stringified_logs " ${native_log} \n " )
154- file (APPEND "${log_collection } " "error:${native_log} \n " )
153+ file (APPEND "${Z_VCPKG_LOG_COLLECTION_FILE } " "error:${native_log} \n " )
155154 endif ()
156155 endforeach ()
157156 z_vcpkg_prettify_command_line (pretty_command ${arg_COMMAND} )
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ Halting portfile execution.
7878
7979 set (log_out "${CURRENT_BUILDTREES_DIR} /${arg_LOGNAME} -out.log" )
8080 set (log_err "${CURRENT_BUILDTREES_DIR} /${arg_LOGNAME} -err.log" )
81- set (log_collection "${CURRENT_BUILDTREES_DIR} /logs.txt" )
8281
8382 set (timeout_param "" )
8483 set (output_and_error_same OFF )
@@ -121,7 +120,7 @@ Halting portfile execution.
121120 if (NOT log_size EQUAL "0" )
122121 file (TO_NATIVE_PATH "${log} " native_log )
123122 string (APPEND stringified_logs " ${native_log} \n " )
124- file (APPEND "${log_collection } " "error:${native_log} \n " )
123+ file (APPEND "${Z_VCPKG_LOG_COLLECTION_FILE } " "error:${native_log} \n " )
125124 endif ()
126125 endforeach ()
127126
Original file line number Diff line number Diff line change @@ -139,6 +139,9 @@ if(CMD MATCHES "^BUILD$")
139139 set (TRIPLET_SYSTEM_ARCH "${VCPKG_TARGET_ARCHITECTURE} " )
140140 include ("${SCRIPTS} /cmake/vcpkg_common_definitions.cmake" )
141141
142+ set (Z_VCPKG_LOG_COLLECTION_FILE "${CURRENT_BUILDTREES_DIR} /logs.txt" )
143+ file (REMOVE "${Z_VCPKG_LOG_COLLECTION_FILE} " )
144+
142145 include ("${CURRENT_PORT_DIR} /portfile.cmake" )
143146 if (DEFINED PORT)
144147 include ("${SCRIPTS} /build_info.cmake" )
You can’t perform that action at this time.
0 commit comments