Skip to content

Commit

Permalink
Include the llvm-size tool like other binutils-like tools
Browse files Browse the repository at this point in the history
This was requested in
mstorsjo#320.
  • Loading branch information
mstorsjo committed Jan 12, 2023
1 parent bd190c0 commit 9d96e57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ cmake \
-DLLVM_TARGETS_TO_BUILD="ARM;AArch64;X86" \
-DLLVM_INSTALL_TOOLCHAIN_ONLY=$TOOLCHAIN_ONLY \
-DLLVM_LINK_LLVM_DYLIB=$LINK_DYLIB \
-DLLVM_TOOLCHAIN_TOOLS="llvm-ar;llvm-ranlib;llvm-objdump;llvm-rc;llvm-cvtres;llvm-nm;llvm-strings;llvm-readobj;llvm-dlltool;llvm-pdbutil;llvm-objcopy;llvm-strip;llvm-cov;llvm-profdata;llvm-addr2line;llvm-symbolizer;llvm-windres;llvm-ml;llvm-readelf" \
-DLLVM_TOOLCHAIN_TOOLS="llvm-ar;llvm-ranlib;llvm-objdump;llvm-rc;llvm-cvtres;llvm-nm;llvm-strings;llvm-readobj;llvm-dlltool;llvm-pdbutil;llvm-objcopy;llvm-strip;llvm-cov;llvm-profdata;llvm-addr2line;llvm-symbolizer;llvm-windres;llvm-ml;llvm-readelf;llvm-size" \
${HOST+-DLLVM_HOST_TRIPLE=$HOST} \
$CMAKEFLAGS \
..
Expand Down
4 changes: 2 additions & 2 deletions install-wrappers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ for arch in $ARCHS; do
for exec in clang clang++ gcc g++ c++ as; do
ln -sf clang-target-wrapper$CTW_SUFFIX $arch-w64-$target_os-$exec$CTW_LINK_SUFFIX
done
for exec in addr2line ar ranlib nm objcopy readelf strings strip llvm-ar llvm-ranlib; do
for exec in addr2line ar ranlib nm objcopy readelf size strings strip llvm-ar llvm-ranlib; do
if [ -n "$HOST" ]; then
link_target=llvm-wrapper
else
Expand Down Expand Up @@ -129,7 +129,7 @@ if [ -n "$EXEEXT" ]; then
# we are installing wrappers for.
case $ARCHS in
*$HOST_ARCH*)
for exec in clang clang++ gcc g++ c++ addr2line ar dlltool ranlib nm objcopy readelf strings strip windres; do
for exec in clang clang++ gcc g++ c++ addr2line ar dlltool ranlib nm objcopy readelf size strings strip windres; do
ln -sf $HOST-$exec$EXEEXT $exec$EXEEXT
done
for exec in cc c99 c11; do
Expand Down
2 changes: 1 addition & 1 deletion strip-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ for i in bugpoint c-index-test clang-* clangd diagtool dsymutil find-all-symbols
rm -f $i
fi
;;
llvm-ar|llvm-cvtres|llvm-dlltool|llvm-nm|llvm-objdump|llvm-ranlib|llvm-rc|llvm-readobj|llvm-strings|llvm-pdbutil|llvm-objcopy|llvm-strip|llvm-cov|llvm-profdata|llvm-addr2line|llvm-symbolizer|llvm-wrapper|llvm-windres|llvm-ml|llvm-readelf)
llvm-ar|llvm-cvtres|llvm-dlltool|llvm-nm|llvm-objdump|llvm-ranlib|llvm-rc|llvm-readobj|llvm-strings|llvm-pdbutil|llvm-objcopy|llvm-strip|llvm-cov|llvm-profdata|llvm-addr2line|llvm-symbolizer|llvm-wrapper|llvm-windres|llvm-ml|llvm-readelf|llvm-size)
;;
ld64.lld|wasm-ld)
if [ -e $i ]; then
Expand Down

0 comments on commit 9d96e57

Please sign in to comment.