Skip to content

Commit

Permalink
add comments as to the purpose of the different build envvars
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Aug 9, 2023
1 parent 61f227b commit 563119f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
fn main() {
// we use TARGET in --version and user-agent strings
println!(
"cargo:rustc-env=TARGET={}",
std::env::var("TARGET").unwrap()
);
// QSV_KIND is used to determine how qsv was built and is displayed in --version
// check PERFORMANCE.md for more info
println!(
"cargo:rustc-env=QSV_KIND={}",
std::env::var("QSV_KIND").unwrap_or_else(|_| "compiled".to_string())
Expand Down

0 comments on commit 563119f

Please sign in to comment.