Skip to content

Commit

Permalink
Slightly simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
EliahKagan committed Sep 22, 2024
1 parent 5e6b808 commit 488d4f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zng/cmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ pub fn build_zlib_ng(target: &str, compat: bool) {
// Check if we should pass on an explicit boolean value of the WITH_RVV build option.
// See: https://github.com/zlib-ng/zlib-ng?tab=readme-ov-file#advanced-build-options
if let Ok(value) = env::var("RISCV_WITH_RVV") {
let value = value.trim().to_uppercase();
match value.as_str() {
match value.trim().to_uppercase().as_str() {
"OFF" | "NO" | "FALSE" | "0" => {
// Force RVV off. This turns off RVV entirely, as well as the runtime check for it.
// This is not usually necessary, but can be useful for building binaries portable
Expand Down

0 comments on commit 488d4f6

Please sign in to comment.