Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
Signed-off-by: Calvin Neo <[email protected]>
  • Loading branch information
CalvinNeo committed Aug 8, 2024
1 parent 3054566 commit 29a7826
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ ENABLE_FEATURES ?=
#
# Note that enabling frame-pointer means that the Rust standard library will
# be recompiled.
# ifndef PROXY_FRAME_POINTER
ifndef PROXY_FRAME_POINTER
ARCH=$(shell uname -m)
export PROXY_FRAME_POINTER=1
# # Disable when x86, See https://github.com/pingcap/tiflash/issues/6091
# ifeq ($(ARCH),i386)
# export PROXY_FRAME_POINTER=0
# endif
# ifeq ($(ARCH),i686)
# export PROXY_FRAME_POINTER=0
# endif
# ifeq ($(ARCH),x86_64)
# export PROXY_FRAME_POINTER=0
# endif
# endif
# Disable when x86, See https://github.com/pingcap/tiflash/issues/6091
ifeq ($(ARCH),i386)
export PROXY_FRAME_POINTER=0
endif
ifeq ($(ARCH),i686)
export PROXY_FRAME_POINTER=0
endif
ifeq ($(ARCH),x86_64)
export PROXY_FRAME_POINTER=0
endif
endif

ifeq ($(PROXY_FRAME_POINTER),1)
export RUSTFLAGS := $(RUSTFLAGS) -Cforce-frame-pointers=yes
Expand Down

0 comments on commit 29a7826

Please sign in to comment.