Skip to content

Commit

Permalink
[#2740] fix example/rdma_performance compilation error (#2741)
Browse files Browse the repository at this point in the history
Co-authored-by: ivanallen <ivanallen@qq.com>
  • Loading branch information
ivanallen and ivanallen authored Aug 22, 2024
1 parent 25130b4 commit d79f0d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/rdma_performance/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ include $(BRPC_PATH)/config.mk
# Notes on the flags:
# 1. Added -fno-omit-frame-pointer: perf/tcmalloc-profiler use frame pointers by default
# 2. Added -D__const__= : Avoid over-optimizations of TLS variables by GCC>=4.8
CXXFLAGS+=$(CPPFLAGS) -std=c++0x -DNDEBUG -O2 -D__const__= -pipe -W -Wall -Wno-unused-parameter -fPIC -fno-omit-frame-pointer
CXXFLAGS+=$(CPPFLAGS) -std=c++0x -DNDEBUG -O2 -D__const__=__unused__ -pipe -W -Wall -Wno-unused-parameter -fPIC -fno-omit-frame-pointer
ifeq ($(NEED_GPERFTOOLS), 1)
CXXFLAGS+=-DBRPC_ENABLE_CPU_PROFILER
endif
Expand Down Expand Up @@ -95,4 +95,5 @@ endif

%.o:%.cc
@echo "> Compiling $@"
$(CXX) -c $(HDRPATHS) $(CXXFLAGS) $< -o $@
$(CXX) -c $(HDRPATHS) $(CXXFLAGS) $< -o $@

0 comments on commit d79f0d3

Please sign in to comment.