From: Evgeny Vereshchagin Date: Tue, 28 Jul 2020 11:23:50 +0000 (+0000) Subject: tools: make it possible to set all the fuzzing flags with config-gen X-Git-Tag: v2.37-rc1~527^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02f5fc1407390e414b7a6902f541b89a7a77981b;p=thirdparty%2Futil-linux.git tools: make it possible to set all the fuzzing flags with config-gen so that the fuzz targets (along with everything else) can be built and run with: ``` ./tools/config-gen fuzz make check ``` Signed-off-by: Evgeny Vereshchagin --- diff --git a/tools/config-gen b/tools/config-gen index bf638e8ee7..1fd58a02bd 100755 --- a/tools/config-gen +++ b/tools/config-gen @@ -23,6 +23,10 @@ fi while [ -n "$1" ]; do opts="$opts $(ul_get_configuration tools/config-gen.d/$1.conf)" + if [ "$1" == "fuzz" ]; then + export CC=${CC:-clang} + export CXX=${CXX:-clang++} + fi shift done diff --git a/tools/config-gen.d/fuzz.conf b/tools/config-gen.d/fuzz.conf new file mode 100644 index 0000000000..b1d8edae8c --- /dev/null +++ b/tools/config-gen.d/fuzz.conf @@ -0,0 +1,4 @@ +include:devel.conf + +--enable-ubsan +--enable-fuzzing-engine