[compiler-rt] [compiler-rt] Update libFuzzer build script to use C++17. (PR #89604)
Frederic Cambus via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 22 06:21:59 PDT 2024
https://github.com/fcambus created https://github.com/llvm/llvm-project/pull/89604
libFuzzer uses std::clamp which was introduced in C++17.
>From 443279bba7cc76e197908d338d11749bbf5e592d Mon Sep 17 00:00:00 2001
From: Frederic Cambus <fred at statdns.com>
Date: Mon, 22 Apr 2024 15:18:39 +0200
Subject: [PATCH] [compiler-rt] Update libFuzzer build script to use C++17.
libFuzzer uses std::clamp which was introduced in C++17.
---
compiler-rt/lib/fuzzer/build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-rt/lib/fuzzer/build.sh b/compiler-rt/lib/fuzzer/build.sh
index f7f329c0d19c76..f58fd9557ce3d5 100755
--- a/compiler-rt/lib/fuzzer/build.sh
+++ b/compiler-rt/lib/fuzzer/build.sh
@@ -2,7 +2,7 @@
LIBFUZZER_SRC_DIR=$(dirname $0)
CXX="${CXX:-clang}"
for f in $LIBFUZZER_SRC_DIR/*.cpp; do
- $CXX -g -O2 -fno-omit-frame-pointer -std=c++14 $f -c &
+ $CXX -g -O2 -fno-omit-frame-pointer -std=c++17 $f -c &
done
wait
rm -f libFuzzer.a
More information about the llvm-commits
mailing list