Skip to content

Commit

Permalink
Add NDEBUG for FreeBSD Release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 5, 2023
1 parent ec80e93 commit d3cb788
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions kmake/src/Exporters/FreeBSDExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ export class FreeBSDExporter extends Exporter {
}
defline += '-D' + def.value + ' ';
}
if (!options.debug) {
defline += '-DNDEBUG ';
}
this.p('DEF=' + defline);
this.p();

Expand Down
3 changes: 3 additions & 0 deletions lib/kmake/Exporters/FreeBSDExporter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d3cb788

Please sign in to comment.