Skip to content

Commit

Permalink
build.rs: Add #[cfg(debug_assertions)] to -F/-f flags because…
Browse files Browse the repository at this point in the history
… they imply `-g` as well.
  • Loading branch information
kkysen committed Oct 26, 2024
1 parent a61cac8 commit 47059d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ mod asm {
nasm.files(asm_file_paths);
#[cfg(debug_assertions)]
nasm.flag("-g");
#[cfg(debug_assertions)]
nasm.flag(match os {
"windows" => "-fwin64",
_ => "-Fdwarf",
Expand Down

0 comments on commit 47059d1

Please sign in to comment.