tinierfetch/nim/nim.cfg
2023-09-14 12:21:39 +05:30

34 lines
617 B
Nim

# Is this cheating? I hope not :P
@if release or quick:
obj_checks:off
field_checks:off
range_checks:off
bound_checks:off
overflow_checks:off
assertions:off
stacktrace:off
linetrace:off
debugger:off
line_dir:off
dead_code_elim:on
@if nimHasNilChecks:
nilchecks:off
@end
@end
@if release:
opt:speed
@end
gcc.options.speed = "-O3 -fno-strict-aliasing"
gcc.options.size = "-Os"
@if windows:
gcc.options.debug = "-g3 -O0 -gdwarf-3"
@else:
gcc.options.debug = "-g3 -O0"
@end
gcc.c.options.speed = "-O3 -fno-strict-aliasing"
gcc.c.options.size = "-Os"
gcc.c.options.debug = "-g3 -O0"