-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add cargo runner support in order to work with cross
don't run the mod_example test when using cross it depends on escargot also supporting cross, which it doesn't at this time document the runner configuration usage and how to not change anything to run with cross close: #139
- Loading branch information
Showing
4 changed files
with
64 additions
and
13 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,16 @@ | ||
use std::env; | ||
use std::fs; | ||
use std::io::Write; | ||
use std::path; | ||
|
||
fn main() { | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
|
||
// env::ARCH doesn't include full triplet, and AFAIK there isn't a nicer way of getting the full triplet | ||
// (see lib.rs for the rest of this hack) | ||
let out = path::PathBuf::from(env::var_os("OUT_DIR").expect("run within cargo")) | ||
.join("current_target.txt"); | ||
let default_target = env::var("TARGET").expect("run as cargo build script"); | ||
let mut file = fs::File::create(out).unwrap(); | ||
file.write_all(default_target.as_bytes()).unwrap(); | ||
} |
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