Skip to content

Commit

Permalink
Add NDEBUG for Xcode release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 6, 2023
1 parent d3cb788 commit fcc4299
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions kmake/src/Exporters/XCodeExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ export class XCodeExporter extends Exporter {
}
this.p('GCC_NO_COMMON_BLOCKS = YES;', 4);
this.p('GCC_PREPROCESSOR_DEFINITIONS = (', 4);
this.p('NDEBUG,', 5);
for (const define of project.getDefines()) {
if (define.config && define.config.toLowerCase() === 'debug') {
continue;
Expand Down
1 change: 1 addition & 0 deletions lib/kmake/Exporters/XCodeExporter.js

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

2 changes: 1 addition & 1 deletion lib/kmake/Exporters/XCodeExporter.js.map

Large diffs are not rendered by default.

0 comments on commit fcc4299

Please sign in to comment.