mirror of
https://github.com/NotAShelf/tinierfetch.git
synced 2024-11-26 15:16:50 +00:00
34 lines
617 B
Nim
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"
|
|
|