fuzz-introspector: force use of llvm-nm instead of nm (#7533)

This fixes various current build failures across projects that use nm as
part of their build process.
This commit is contained in:
DavidKorczynski 2022-04-11 18:04:38 +01:00 committed by GitHub
parent fbaf847e2e
commit 00132fa740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -149,13 +149,16 @@ fi
if [ "$SANITIZER" = "introspector" ]; then
export LDFLAGS="-fuse-ld=gold -flto"
export AR=llvm-ar
export NM=llvm-nm
export RANLIB=llvm-ranlib
# Move ar and ranlib
mv /usr/bin/ar /usr/bin/old-ar
mv /usr/bin/nm /usr/bin/old-nm
mv /usr/bin/ranlib /usr/bin/old-ranlib
ln -sf /usr/local/bin/llvm-ar /usr/bin/ar
ln -sf /usr/local/bin/llvm-nm /usr/bin/nm
ln -sf /usr/local/bin/llvm-ranlib /usr/bin/ranlib
fi

View File

@ -225,6 +225,7 @@ mv \
/usr/local/bin/llvm-config \
/usr/local/bin/llvm-cov \
/usr/local/bin/llvm-objcopy \
/usr/local/bin/llvm-nm \
/usr/local/bin/llvm-profdata \
/usr/local/bin/llvm-ranlib \
/usr/local/bin/llvm-symbolizer \