From cbb57e5c5b7de8020efb27048772fbc1c697937e Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Fri, 6 Sep 2024 17:37:49 -0700 Subject: [PATCH] Fix `bun run` being terminated randomly in CI This was basically a chaos monkey in our CI --- CMakeLists.txt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fdaa54b89..c589fb4c72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)