Skip to content

Commit

Permalink
revision: gate kill_all behind windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DogeDark committed Nov 21, 2024
1 parent 60329f2 commit 81eff21
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/cli/src/serve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ pub(crate) async fn serve_all(mut args: ServeArgs) -> Result<()> {
} else if runner.should_full_rebuild {
tracing::info!(dx_src = ?TraceSrc::Dev, "Full rebuild: {}", file);

// Kill any running executables
runner.kill_all();
// Kill any running executables on Windows
if cfg!(windows) {
runner.kill_all();
}

// We're going to kick off a new build, interrupting the current build if it's ongoing
builder.rebuild(args.build_arguments.clone());
Expand Down Expand Up @@ -217,7 +219,12 @@ pub(crate) async fn serve_all(mut args: ServeArgs) -> Result<()> {
// `Full rebuild:` to line up with
// `Hotreloading:` to keep the alignment during long edit sessions
tracing::info!("Full rebuild: triggered manually");
runner.kill_all();

// Kill any running executables on Windows
if cfg!(windows) {
runner.kill_all();
}

builder.rebuild(args.build_arguments.clone());
runner.file_map.force_rebuild();
devserver.start_build().await
Expand Down

0 comments on commit 81eff21

Please sign in to comment.