Skip to content

Commit

Permalink
Merge pull request #942 from geotre/patch-1
Browse files Browse the repository at this point in the history
In nim bindings, set NDEBUG in release mode
  • Loading branch information
floooh authored Nov 22, 2023
2 parents d95cfd7 + 4fd3a13 commit fa3d7cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindgen/gen_nim.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ def gen_extra(inp):
# l('')
c_source_path = '/'.join(c_source_paths[inp['prefix']].split('/')[3:])
l('{.passc:"-DSOKOL_NIM_IMPL".}')
l('when defined(release):')
l(' {.passc:"-DNDEBUG".}')
l(f'{{.compile:"{c_source_path}".}}')

def gen_module(inp, dep_prefixes):
Expand Down

0 comments on commit fa3d7cb

Please sign in to comment.