소스 검색

Update gen_nim.py

geotre 1 년 전
부모
커밋
4fd3a1319a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      bindgen/gen_nim.py

+ 2 - 0
bindgen/gen_nim.py

@@ -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):