changeset 38245:74f89b7a4268

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"
author Yuya Nishihara <yuya@tcha.org>
date Sun, 03 Jun 2018 13:18:13 +0900
parents a1c0873a9990
children 9db30f438ddd
files contrib/fuzz/Makefile
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/fuzz/Makefile	Sun Jun 03 13:12:32 2018 +0900
+++ b/contrib/fuzz/Makefile	Sun Jun 03 13:18:13 2018 +0900
@@ -34,6 +34,7 @@
 	  -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 \