From a733f7faacecf3bada4127cee1d5f94b1fcf4244 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 8 Sep 2022 19:52:10 +0200 Subject: [PATCH] Revert "build: go faster, drop -fno-omit-frame-pointer" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d0f73d383d5e1ed58c96a272036744d4bed22b8f. The lack of frame pointers unfortunately breaks the --perf_basic_prof flag because perf(1) then no longer understands C++ <-> JS stack frame transitions. PR-URL: https://github.com/nodejs/node/pull/44566 Reviewed-By: Jiawen Geng Reviewed-By: Gerhard Stöbich Reviewed-By: Tobias Nießen Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Darshan Sen Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca --- common.gypi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common.gypi b/common.gypi index 33cd361e67a672..3f708d89b1ef38 100644 --- a/common.gypi +++ b/common.gypi @@ -212,6 +212,9 @@ 'cflags': [ '-qINLINE=::150:100000' ] }], ['OS!="mac" and OS!="win" and OS!="zos"', { + # -fno-omit-frame-pointer is necessary for the --perf_basic_prof + # flag to work correctly. perf(1) gets confused about JS stack + # frames otherwise, even with --call-graph dwarf. 'cflags': [ '-fno-omit-frame-pointer' ], }], ['OS=="linux"', { @@ -546,9 +549,6 @@ }], ], }], - ['OS=="freebsd" and node_use_dtrace=="true"', { - 'libraries': [ '-lelf' ], - }], ['OS=="freebsd"', { 'ldflags': [ '-Wl,--export-dynamic',