-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Elliot Saba <staticfloat@gmail.com>
- Loading branch information
1 parent
0a4ba26
commit 73fc6d0
Showing
8 changed files
with
208 additions
and
159 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
7 changes: 7 additions & 0 deletions
7
0_RootFS/Rootfs/bundled/testsuite/rust/cargo_build/Cargo.toml
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,7 @@ | ||
[package] | ||
name = "cargo_build" | ||
version = "0.1.0" | ||
authors = ["Binary Builder <bb@julialang.org>"] | ||
edition = "2018" | ||
|
||
[dependencies] |
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,9 @@ | ||
PROJECT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) | ||
BINS = $(PROJECT_NAME)$(exeext) | ||
|
||
include ../../common.mk | ||
|
||
$(PROJECT_BUILD)/$(PROJECT_NAME)$(exeext): src/main.rs | ||
$(call color,$(CARGO),install --verbose --path . --root $(PROJECT_BUILD)) | ||
mv $(PROJECT_BUILD)/bin/* $(PROJECT_BUILD)/ | ||
rm -rf $(PROJECT_BUILD)/bin |
3 changes: 3 additions & 0 deletions
3
0_RootFS/Rootfs/bundled/testsuite/rust/cargo_build/src/main.rs
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,3 @@ | ||
fn main() { | ||
println!("I was built by cargo! How cool is that?!"); | ||
} |
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,5 @@ | ||
#!/bin/bash | ||
|
||
# We run in a single-user environment, we can't afford running `chown` when | ||
# installing packages. | ||
/sbin/apk --no-chown "$@" |
Oops, something went wrong.