generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract case statements to separate scripts and update Justfile to ca…
…ll these scripts
- Loading branch information
1 parent
70734fe
commit 3e5c926
Showing
3 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
case $(uname -sm) in | ||
"Darwin arm64") | ||
TARGET_ARCH="aarch64-apple-darwin" ;; | ||
"Darwin x86_64") | ||
TARGET_ARCH="x86_64-apple-darwin" ;; | ||
"Linux aarch64") | ||
TARGET_ARCH="aarch64-unknown-linux-gnu" ;; | ||
"Linux x86_64") | ||
TARGET_ARCH="x86_64-unknown-linux-gnu" ;; | ||
esac | ||
export TARGET_ARCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
case $(uname -sm) in | ||
"Darwin arm64") | ||
rustup target add aarch64-apple-darwin ;; | ||
"Darwin x86_64") | ||
rustup target add x86_64-apple-darwin ;; | ||
"Linux aarch64") | ||
rustup target add aarch64-unknown-linux-gnu ;; | ||
"Linux x86_64") | ||
rustup target add x86_64-unknown-linux-gnu ;; | ||
esac |