-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include rustc version, use DLL_SUFFIX
- Loading branch information
Showing
2 changed files
with
33 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use std::{env, process::Command}; | ||
|
||
fn main() { | ||
let rustc_version = Command::new(env::var("RUSTC").unwrap()).arg("--version").output().unwrap().stdout; | ||
Check warning on line 4 in build.rs GitHub Actions / cspell
|
||
let rustc_version = String::from_utf8(rustc_version).unwrap(); | ||
Check warning on line 5 in build.rs GitHub Actions / cspell
|
||
|
||
println!("cargo::rustc-env=RUSTC_VERSION={rustc_version}"); | ||
Check warning on line 7 in build.rs GitHub Actions / cspell
Check warning on line 7 in build.rs GitHub Actions / cspell
|
||
} |
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