mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-06 00:26:08 +02:00
13 lines
424 B
Rust
13 lines
424 B
Rust
fn main() {
|
|
// Set in build.rs.
|
|
let compiler_path = env!("COMPILER_PATH");
|
|
|
|
let mut compiler_command = std::process::Command::new(compiler_path);
|
|
// Use the --version flag on everything other than MSVC.
|
|
if !cfg!(target_env = "msvc") {
|
|
compiler_command.arg("--version");
|
|
}
|
|
// Run the compiler to print its version. Ignore the exit status.
|
|
let _ = compiler_command.status().unwrap();
|
|
}
|