36 lines
1.0 KiB
Nim
36 lines
1.0 KiB
Nim
# ############################################################
|
||
#
|
||
# 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
|