Build libfuzzer with C++ 17

This commit is contained in:
Sylvestre Ledru 2022-10-09 13:47:24 +02:00
parent 6239dccef0
commit 0ee9d69daa
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -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 <sylvestre@debian.org> Sat, 08 Oct 2022 15:06:37 +0200

2
debian/rules vendored
View File

@ -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 $@