Skip to content

Commit

Permalink
move -ggdb into hip section
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Jan 11, 2024
1 parent f9d7c34 commit 53a8ec1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ mod gpu {
hip_target.flag(&format!("--offload-arch={arch}"));
}

match env::var("DEBUG").as_deref() {
Ok("false") => (),
_ => gpu_target.flag("-ggdb"),
};

hip_target
};

Expand All @@ -231,8 +236,7 @@ mod gpu {
_ => {
gpu_target
.define("DEBUG", "")
.flag("-v")
.flag("-ggdb");
.flag("-v");
},
};

Expand Down

0 comments on commit 53a8ec1

Please sign in to comment.