Skip to content

Commit

Permalink
2024-03-21 22:56:57
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Mar 21, 2024
1 parent faf5c03 commit c70499c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ fn setup_compiler_flags(build: &mut cc::Build) {
.flag("--target=riscv64")
.flag("-march=rv64imc_zba_zbb_zbc_zbs");

if env::var("DEBUG").map(|v| v != "false").unwrap_or(false) {
build.flag("-g").flag("-fno-omit-frame-pointer");
}
// if env::var("DEBUG").map(|v| v != "false").unwrap_or(false) {
// build.flag("-g").flag("-fno-omit-frame-pointer");
// }

build.flag("-O3");
} else if compiler.is_like_gnu() {
Expand Down

0 comments on commit c70499c

Please sign in to comment.