From b1ff4ef3a50b0044cf3f26286fe0e6b5227ca329 Mon Sep 17 00:00:00 2001 From: andri lim Date: Wed, 3 Jul 2024 17:14:03 +0700 Subject: [PATCH] Omit frame pointer for secp256k1 (#2442) --- config.nims | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config.nims b/config.nims index fb3d57271..caa0a766c 100644 --- a/config.nims +++ b/config.nims @@ -172,4 +172,12 @@ when not defined(use_system_rocksdb) and not defined(windows): switch("dynlibOverride", "zstd") when defined(gcc): - switch("passc", "-Wno-error=incompatible-pointer-types") \ No newline at end of file + 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")