未验证 提交 11fc8f1a 编写于 作者: T Ted Mostly 提交者: GitHub

gcc 7 could not compile (#1112)

上级 c59ff1c7
......@@ -2,7 +2,11 @@ CLEAN_FILES = # deliberately empty, so we can append below.
CXX=g++
PLATFORM_LDFLAGS= -lpthread -lrt
PLATFORM_CXXFLAGS= -std=c++11 -fno-builtin-memcmp -msse -msse4.2
ROCKSDB_CXXFLAGS= -Wno-error=deprecated-copy -Wno-error=pessimizing-move -Wno-error=class-memaccess -Wno-error=array-bounds
ROCKSDB_CXXFLAGS=
CC_VERSION_MAJOR := $(shell $(CXX) -dumpversion | cut -d '.' -f1)
ifeq (1,$(shell expr $(CC_VERSION_MAJOR) \> 7))
ROCKSDB_CXXFLAGS += -Wno-error=deprecated-copy -Wno-error=pessimizing-move -Wno-error=class-memaccess -Wno-error=array-bounds
endif
PROFILING_FLAGS=-pg
OPT=
LDFLAGS += -Wl,-rpath=$(RPATH)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册