Skip to content

Commit 8af59b2

Browse files
authored
[sanitizers] build symbolizer with lld (llvm#172093)
Without this, we use the system /usr/bin/ld, which is an older LLD. That can lead to problems with LTO and breaks the aarch64 buildbot.
1 parent bd81f41 commit 8af59b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ if [[ ! -d ${ZLIB_BUILD} ]]; then
8383
fi
8484

8585
cd ${ZLIB_BUILD}
86-
AR="${AR}" CC="${CC}" CFLAGS="$FLAGS -Wno-deprecated-non-prototype" RANLIB=/bin/true ./configure --static
86+
AR="${AR}" CC="${CC}" CFLAGS="$FLAGS -Wno-deprecated-non-prototype -fuse-ld=lld" RANLIB=/bin/true ./configure --static
8787
# TODO: remove this. this is for debugging buildbot problems
8888
cat configure.log
8989
make -j libz.a

0 commit comments

Comments
 (0)