From 0ee9d69daa838e1835b62684b212f47a1c64c2b7 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 9 Oct 2022 13:47:24 +0200 Subject: [PATCH] Build libfuzzer with C++ 17 --- debian/changelog | 1 + debian/rules | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4163f444..dfc6af24 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ llvm-toolchain-15 (1:15.0.2-2~exp3) UNRELEASED; urgency=medium * Build using LTO - better performances of the llvm-toolchain binaires + * Build libfuzzer with C++ 17 -- Sylvestre Ledru Sat, 08 Oct 2022 15:06:37 +0200 diff --git a/debian/rules b/debian/rules index 970ccd93..e7422316 100755 --- a/debian/rules +++ b/debian/rules @@ -680,7 +680,7 @@ ifeq (${LIBFUZZER_ENABLE},yes) cd $(TARGET_BUILD); \ CFLAGS="$(opt_flags) $(STAGE_2_CFLAGS)"; \ echo $$CFLAGS; \ - $(STAGE_2_BIN_DIR)/clang++ -c $$CFLAGS -std=c++11 $(BASE_PATH)/compiler-rt/lib/fuzzer/*.cpp -IFuzzer; \ + $(STAGE_2_BIN_DIR)/clang++ -c $$CFLAGS -std=c++17 $(BASE_PATH)/compiler-rt/lib/fuzzer/*.cpp -IFuzzer; \ ar ruv libFuzzer.a Fuzzer*.o endif touch $@