Skip to content

Commit 387d5bf

Browse files
committed
fix: only apply it when using clang
1 parent 2227859 commit 387d5bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Makefile.am

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,9 @@ libbitcoin_node_a_SOURCES += dummywallet.cpp
617617
endif
618618

619619
# Workaround for LLVM 18.1.8 bug: reduce debug level for rpc/evo.cpp to avoid crash
620-
# in debug info generation for complex std::function template
621-
rpc/libbitcoin_node_a-evo.$(OBJEXT): CXXFLAGS += -g0
620+
# in debug info generation for complex std::function template.
621+
# Only apply this workaround when using Clang.
622+
rpc/libbitcoin_node_a-evo.$(OBJEXT): CXXFLAGS += $(shell $(CXX) --version | grep -q clang && echo "-g0")
622623

623624
if ENABLE_ZMQ
624625
libbitcoin_zmq_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BOOST_CPPFLAGS) $(ZMQ_CFLAGS)

0 commit comments

Comments
 (0)