-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from bearcove/compat
Add opt-in compatibility tests
- Loading branch information
Showing
22 changed files
with
1,303 additions
and
45 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,14 @@ | ||
fn main() { | ||
#[cfg(any(feature = "export-globals", feature = "import-globals"))] | ||
{ | ||
use std::env; | ||
|
||
// Get the Rust compiler version and set it as an environment variable. | ||
let rustc_version = rustc_version::version().unwrap(); | ||
println!("cargo:rustc-env=RUBICON_RUSTC_VERSION={}", rustc_version); | ||
|
||
// Pass the target triple. | ||
let target = env::var("TARGET").unwrap(); | ||
println!("cargo:rustc-env=RUBICON_TARGET_TRIPLE={}", target); | ||
} | ||
} |
Oops, something went wrong.