merge "nim.cfg" into "config.nims" (#1820)
to reduce the number of configuration files
This commit is contained in:
parent
e9b2253fac
commit
f1acc0532c
37
config.nims
37
config.nims
|
@ -101,3 +101,40 @@ switch("warning", "LockLevel:off")
|
|||
|
||||
# Useful for Chronos metrics.
|
||||
#--define:chronosFutureTracking
|
||||
|
||||
# ############################################################
|
||||
#
|
||||
# No LTO for crypto
|
||||
#
|
||||
# ############################################################
|
||||
|
||||
# This applies per-file compiler flags to C files
|
||||
# which do not support {.localPassC: "-fno-lto".}
|
||||
# Unfortunately this is filename based instead of path-based
|
||||
# Assumes GCC
|
||||
|
||||
# BLST
|
||||
put("server.always", "-fno-lto")
|
||||
put("assembly.always", "-fno-lto")
|
||||
|
||||
# Secp256k1
|
||||
put("secp256k1.always", "-fno-lto")
|
||||
|
||||
# BearSSL - only RNGs
|
||||
put("aesctr_drbg.always", "-fno-lto")
|
||||
put("hmac_drbg.always", "-fno-lto")
|
||||
put("sysrng.always", "-fno-lto")
|
||||
|
||||
# Miracl - only ECP to derive public key from private key
|
||||
put("ecp_BLS12381.always", "-fno-lto")
|
||||
|
||||
# ############################################################
|
||||
#
|
||||
# Spurious warnings
|
||||
#
|
||||
# ############################################################
|
||||
|
||||
# sqlite3.c: In function ‘sqlite3SelectNew’:
|
||||
# vendor/nim-sqlite3-abi/sqlite3.c:124500: warning: function may return address of local variable [-Wreturn-local-addr]
|
||||
put("sqlite3.always", "-fno-lto") # -Wno-return-local-addr
|
||||
|
||||
|
|
35
nim.cfg
35
nim.cfg
|
@ -1,35 +0,0 @@
|
|||
# ############################################################
|
||||
#
|
||||
# No LTO for crypto
|
||||
#
|
||||
# ############################################################
|
||||
|
||||
# This applies per-file compiler flags to C files
|
||||
# which do not support {.localPassC: "-fno-lto".}
|
||||
# Unfortunately this is filename based instead of path-based
|
||||
# Assumes GCC
|
||||
|
||||
# BLST
|
||||
server.always = "-fno-lto"
|
||||
assembly.always = "-fno-lto"
|
||||
|
||||
# Secp256k1
|
||||
secp256k1.always = "-fno-lto"
|
||||
|
||||
# BearSSL - only RNGs
|
||||
aesctr_drbg.always = "-fno-lto"
|
||||
hmac_drbg.always = "-fno-lto"
|
||||
sysrng.always = "-fno-lto"
|
||||
|
||||
# Miracl - only ECP to derive public key from private key
|
||||
ecp_BLS12381.always = "-fno-lto"
|
||||
|
||||
# ############################################################
|
||||
#
|
||||
# Spurious warnings
|
||||
#
|
||||
# ############################################################
|
||||
|
||||
# sqlite3.c: In function ‘sqlite3SelectNew’:
|
||||
# vendor/nim-sqlite3-abi/sqlite3.c:124500: warning: function may return address of local variable [-Wreturn-local-addr]
|
||||
sqlite3.always = "-fno-lto" # -Wno-return-local-addr
|
Loading…
Reference in New Issue