-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be mindful of prebuilt crates (is this even possible for proc-macro c…
…rates?)
- Loading branch information
1 parent
d43fd10
commit 30f9506
Showing
2 changed files
with
2 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
fn main() { | ||
println!("cargo:rustc-env=HOST_TRIPLE={}", std::env::var("HOST").unwrap()); | ||
// We assume that the target triple of this crate is the same as that of the target program. | ||
// This is pretty much always the case, but not actually guaranteed. | ||
println!("cargo:rustc-env=TARGET_TRIPLE={}", std::env::var("TARGET").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