Skip to content

Commit

Permalink
Enable rdynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Nov 11, 2024
1 parent fabc801 commit 08b83b5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ else ifneq '' '$(findstring g++,$(COMPILER_VERSION))'
COMPILER_NAME := GCC
CXXFLAGS += -flto=auto
# std::stacktrace is available in GCC 14 and later
# ifeq ($(shell expr $(COMPILER_VERSION_NUMBER_MAJOR) \>= 14),1)
# CXXFLAGS += -rdynamic -DENABLE_STACKTRACE=true
# LDFLAGS += -lstdc++exp
# endif
ifeq ($(shell expr $(COMPILER_VERSION_NUMBER_MAJOR) \>= 14),1)
CXXFLAGS += -rdynamic
# CXXFLAGS += -DENABLE_STACKTRACE=true
# LDFLAGS += -lstdc++exp
endif
else ifneq '' '$(findstring nvc++,$(COMPILER_VERSION))'
COMPILER_NAME := NVHPC
else
Expand Down

0 comments on commit 08b83b5

Please sign in to comment.