2019-08-24 20:07:04 +00:00
|
|
|
@if release:
|
|
|
|
nimcache = "nimcache/release/$projectName"
|
|
|
|
@else:
|
|
|
|
nimcache = "nimcache/debug/$projectName"
|
|
|
|
@end
|
2019-07-03 07:35:05 +00:00
|
|
|
|
2019-02-05 17:48:34 +00:00
|
|
|
@if windows:
|
2019-08-24 20:07:04 +00:00
|
|
|
# disable timestamps in Windows PE headers - https://wiki.debian.org/ReproducibleBuilds/TimestampsInPEBinaries
|
|
|
|
--passL:"-Wl,--no-insert-timestamp"
|
2019-04-11 21:30:26 +00:00
|
|
|
# increase stack size
|
|
|
|
--passL:"-Wl,--stack,8388608"
|
2019-04-24 23:49:41 +00:00
|
|
|
# https://github.com/nim-lang/Nim/issues/4057
|
|
|
|
--tlsEmulation:off
|
2018-09-03 16:42:22 +00:00
|
|
|
@end
|
2019-02-05 17:48:34 +00:00
|
|
|
|
2019-08-24 20:07:04 +00:00
|
|
|
--threads:on
|
|
|
|
--opt:speed
|
|
|
|
--excessiveStackTrace:on
|
|
|
|
-d:metrics # enable metric collection
|
|
|
|
|