Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Feb 5, 2024
1 parent 1e556c6 commit fa45e9f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,22 @@ fn main() {
if let Some(bc) = bazel_cache {
cmd.arg(format!("--output_user_root={bc}"));
}
if cfg!(target_os = "macos") {}

cmd.args(["build", "--compilation_mode", "opt", "--strip", "always"]);

// TODO: Right now we are building on x86_64 macs because for some
// inexplicable reason the macos 14 (aarch64) runners don't have python
// installed? so we just build the aarch64 binaries and then use them on
// the good runners that don't need python, thankfully. This can be moved
// to aarch64 when github updates the runner (I'm assuming not having
// python by default will make many people upset)
if cfg!(target_os = "macos") {
// Also, if we were to also want x86_64 binaries we could add that triple
// and build on either m1 or old, but I don't see that point of that
if triple == "aarch64-apple-darwin" {
cmd.arg("--macos_cpus=arm64");
}

cmd.args(["build", "--compilation_mode", "opt", "--strip", "always"]);
cmd.args(BINARIES.iter().map(|b| format!(":{b}")));
cmd.current_dir(cwd);

Expand Down

0 comments on commit fa45e9f

Please sign in to comment.