Fix export of afl-clang-fast if already in PATH (#1773)

This commit is contained in:
Konstantin Bücheler 2024-01-03 23:22:42 +01:00 committed by GitHub
parent 8164bfca96
commit 9b2a17896f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -12,13 +12,14 @@ then
pushd AFLplusplus pushd AFLplusplus
make make
popd popd
export CC="$(pwd)/AFLplusplus/afl-clang-fast"
export CXX="$(pwd)/AFLplusplus/afl-clang-fast++"
else else
echo "afl-clang-fast already exists in PATH." echo "afl-clang-fast already exists in PATH."
export CC="afl-clang-fast"
export CXX="afl-clang-fast++"
fi fi
export CC="$(pwd)/AFLplusplus/afl-clang-fast"
export CXX="$(pwd)/AFLplusplus/afl-clang-fast++"
curl -C - https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.14/libxml2-v2.9.14.tar.gz --output libxml2-v2.9.14.tar.gz curl -C - https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.14/libxml2-v2.9.14.tar.gz --output libxml2-v2.9.14.tar.gz
tar -xf ./libxml2-v2.9.14.tar.gz --transform s/libxml2-v2.9.14/libxml2/ || exit tar -xf ./libxml2-v2.9.14.tar.gz --transform s/libxml2-v2.9.14/libxml2/ || exit
cd ./libxml2/ || exit cd ./libxml2/ || exit

View File

@ -12,12 +12,14 @@ then
pushd AFLplusplus pushd AFLplusplus
make make
popd popd
export CC="$(pwd)/AFLplusplus/afl-clang-fast"
export CXX="$(pwd)/AFLplusplus/afl-clang-fast++"
else else
echo "afl-clang-fast already exists in PATH." echo "afl-clang-fast already exists in PATH."
export CC="afl-clang-fast"
export CXX="afl-clang-fast++"
fi fi
export CC="$(pwd)/AFLplusplus/afl-clang-fast"
export CXX="$(pwd)/AFLplusplus/afl-clang-fast++"
curl -C - https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.14/libxml2-v2.9.14.tar.gz --output libxml2-v2.9.14.tar.gz curl -C - https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.14/libxml2-v2.9.14.tar.gz --output libxml2-v2.9.14.tar.gz
tar -xf ./libxml2-v2.9.14.tar.gz --transform s/libxml2-v2.9.14/libxml2/ || exit tar -xf ./libxml2-v2.9.14.tar.gz --transform s/libxml2-v2.9.14/libxml2/ || exit
cd ./libxml2/ || exit cd ./libxml2/ || exit