This is an automated email from the ASF dual-hosted git repository. lanking pushed a commit to branch v1.4.x in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/v1.4.x by this push: new a03d59e Fix gtest build (#13926) a03d59e is described below commit a03d59ed867ba334d78d61246a1090cd1868f5da Author: Zhennan Qin <zhennan....@intel.com> AuthorDate: Fri Feb 15 02:40:30 2019 +0800 Fix gtest build (#13926) --- tests/cpp/unittest.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cpp/unittest.mk b/tests/cpp/unittest.mk index 746ee2f..bca0389 100644 --- a/tests/cpp/unittest.mk +++ b/tests/cpp/unittest.mk @@ -25,6 +25,8 @@ GTEST_SRCS_ = $(GTEST_DIR)/src/*.cc $(GTEST_DIR)/src/*.h $(GTEST_HEADERS) GTEST_HEADERS = $(GTEST_DIR)/include/gtest/*.h \ $(GTEST_DIR)/include/gtest/internal/*.h +GTEST_FLAGS=-Wall -Wshadow -DGTEST_HAS_PTHREAD=1 -fexceptions -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c++11 + TEST_CFLAGS = -Itests/cpp/include -Isrc $(CFLAGS) TEST_LDFLAGS = $(LDFLAGS) -Llib -lmxnet @@ -36,7 +38,7 @@ endif .PHONY: runtest testclean gtest-all.o : $(GTEST_SRCS_) - $(CXX) $(CPPFLAGS) -I$(GTEST_INC) -I$(GTEST_DIR) $(CXXFLAGS) -c $(GTEST_DIR)/src/gtest-all.cc + $(CXX) $(CPPFLAGS) $(GTEST_FLAGS) -I$(GTEST_INC) -I$(GTEST_DIR) $(CXXFLAGS) -c $(GTEST_DIR)/src/gtest-all.cc gtest.a : gtest-all.o $(AR) $(ARFLAGS) $@ $^