Omit frame pointer for secp256k1 (#2442)

This commit is contained in:
andri lim 2024-07-03 17:14:03 +07:00 committed by GitHub
parent 1f60e8e453
commit b1ff4ef3a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -173,3 +173,11 @@ when not defined(use_system_rocksdb) and not defined(windows):
when defined(gcc):
switch("passc", "-Wno-error=incompatible-pointer-types")
# This applies per-file compiler flags to C files
# which do not support {.localPassC: "...".}
# Unfortunately this is filename based instead of path-based
# Assumes GCC
# -fomit-frame-pointer for https://github.com/status-im/nimbus-eth1/issues/2127
put("secp256k1.always", "-fomit-frame-pointer")