# HG changeset patch # User Yuya Nishihara # Date 2018-06-03 04:18:13 # Node ID 74f89b7a4268d25946431642b2aa72483350d21a # Parent a1c0873a9990bbf93e397c602d737f2ae32d9315 fuzz: compile xdiff.cc with -std=c++17 Otherwise the build would fail as follows: In file included from xdiff.cc:13: ./fuzzutil.h:23:10: fatal error: 'third_party/absl/types/optional.h' file not found #include "third_party/absl/types/optional.h" diff --git a/contrib/fuzz/Makefile b/contrib/fuzz/Makefile --- a/contrib/fuzz/Makefile +++ b/contrib/fuzz/Makefile @@ -34,6 +34,7 @@ x%.o: ../../mercurial/thirdparty/xdiff/x -o $@ \ $< +xdiff: CXXFLAGS += -std=c++17 xdiff: xdiff.cc xdiffi.o xprepare.o xutils.o fuzzutil.o $(CXX) $(CXXFLAGS) -DHG_FUZZER_INCLUDE_MAIN=1 -g -O1 -fsanitize=fuzzer-no-link,address \ -I../../mercurial xdiff.cc \