Index: Makefile |
diff --git a/Makefile b/Makefile |
index 4fb6ee0162275f88737145bdff58d20d3e3f1cf4..b32a718f24126bc3ad73d3ffa6731de14813f7f5 100644 |
--- a/Makefile |
+++ b/Makefile |
@@ -219,6 +219,10 @@ endif |
ifeq ($(arm_test_noprobe), on) |
GYPFLAGS += -Darm_test_noprobe=on |
endif |
+# Do not omit the frame pointer, needed for profiling with perf |
+ifeq ($(no_omit_framepointer), on) |
+ GYPFLAGS += -Drelease_extra_cflags=-fno-omit-frame-pointer |
+endif |
# ----------------- available targets: -------------------- |
# - "grokdump": rebuilds heap constants lists used by grokdump |