Fix bun run being terminated randomly in CI

This was basically a chaos monkey in our CI
This commit is contained in:
Ashcon Partovi
2024-09-06 17:37:49 -07:00
committed by GitHub
parent ed6554314e
commit cbb57e5c5b

View File

@@ -1378,19 +1378,6 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT WIN32 AND NOT ASSERT_ENABLED)
)
endif()
if(WIN32)
# Kill all instances of bun before linking.
# This is necessary because the file is locked by the process.
add_custom_command(
TARGET ${bun}
PRE_LINK
COMMAND
"powershell"
"/C"
"Stop-Process -Name '${bun}' -Force -ErrorAction SilentlyContinue; exit 0"
)
endif()
# --- Dependencies ---
if(USE_CUSTOM_ZLIB)
include_directories(${BUN_DEPS_DIR}/zlib)