diff --git a/.travis.yml b/.travis.yml index da479b9317b..5f84e2da9dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -107,7 +107,6 @@ jobs: # env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer" env: - COMPILER="ccache /usr/bin/g++-5" - - EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG" - WITH_MEMORY_ANALYZER=1 # OS X using clang++ diff --git a/buildspec.yml b/buildspec.yml index 2303d301094..62fcdfd0428 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -4,6 +4,7 @@ env: variables: # CodeBuild console doesn't display color codes correctly TESTPL_COLOR_OUTPUT: 0 + CP_EXTRA_CXXFLAGS: -D_GLIBCXX_DEBUG phases: install: diff --git a/src/common b/src/common index 46907ac93f0..0555da168ca 100644 --- a/src/common +++ b/src/common @@ -210,8 +210,8 @@ first_target: all HOSTCXX ?= $(CXX) -CP_CFLAGS += $(CFLAGS) $(INCLUDES) -CP_CXXFLAGS += $(CXXFLAGS) $(INCLUDES) +CP_CFLAGS += $(CFLAGS) $(CP_EXTRA_CFLAGS) $(INCLUDES) +CP_CXXFLAGS += $(CXXFLAGS) $(CP_EXTRA_CXXFLAGS) $(INCLUDES) OBJ += $(patsubst %.cpp, %$(OBJEXT), $(filter %.cpp, $(SRC))) OBJ += $(patsubst %.cc, %$(OBJEXT), $(filter %.cc, $(SRC)))