[compiler-rt] Update build_symbolizer.sh to use -passes syntax
authorRoman Lebedev <lebedev.ri@gmail.com>
Fri, 9 Dec 2022 00:07:36 +0000 (03:07 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 9 Dec 2022 00:07:58 +0000 (03:07 +0300)
compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh

index c2fa1f3..aedbb27 100755 (executable)
@@ -172,7 +172,7 @@ $LINK $LIBCXX_ARCHIVE_DIR/libc++.a \
       -ignore-non-bitcode -o all.bc
 
 echo "Optimizing..."
-$OPT -internalize -internalize-public-api-list=${SYMBOLIZER_API_LIST} all.bc -o opt.bc
+$OPT -passes=internalize -internalize-public-api-list=${SYMBOLIZER_API_LIST} all.bc -o opt.bc
 $CC $FLAGS -fno-lto -c opt.bc -o symbolizer.o
 
 echo "Checking undefined symbols..."