Skip to content

Commit

Permalink
Revert "feat(turborepo): Scripts to build a debug version on windows (v…
Browse files Browse the repository at this point in the history
…ercel#5007)"

This reverts commit 33f2d25.
  • Loading branch information
Nathan Hammond authored and Nathan Hammond committed Jul 14, 2023
1 parent f3a36e7 commit 7b9c069
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 36 deletions.
17 changes: 0 additions & 17 deletions cli/build_go.bat

This file was deleted.

6 changes: 0 additions & 6 deletions cli/build_turbo.bat

This file was deleted.

17 changes: 4 additions & 13 deletions crates/turborepo/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::{env, fs, path::PathBuf, process::Command};

fn main() {
println!("cargo:rerun-if-changed=../../cli");
let profile = env::var("PROFILE").unwrap();
let is_ci_release =
&profile == "release" && matches!(env::var("RELEASE_TURBO_CLI"), Ok(v) if v == "true");
Expand All @@ -13,26 +14,16 @@ fn main() {
fn build_local_go_binary(profile: String) -> PathBuf {
let cli_path = cli_path();
let target = build_target::target().unwrap();
let mut cmd = Command::new("make");
cmd.current_dir(&cli_path);

let go_binary_name = if target.os == build_target::Os::Windows {
"go-turbo.exe"
} else {
"go-turbo"
};

#[cfg(not(windows))]
let mut cmd = {
let mut cmd = Command::new("make");
cmd.current_dir(&cli_path);
cmd.arg(go_binary_name);
cmd
};
#[cfg(windows)]
let mut cmd = {
let mut cmd = Command::new(cli_path.join("build_go.bat"));
cmd.current_dir(&cli_path);
cmd
};
cmd.arg(go_binary_name);

assert!(
cmd.stdout(std::process::Stdio::inherit())
Expand Down

0 comments on commit 7b9c069

Please sign in to comment.