[llvm] r371741 - test-release.sh: Don't use chrpath on Solaris
Rainer Orth via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 12 07:50:33 PDT 2019
Author: ro
Date: Thu Sep 12 07:50:32 2019
New Revision: 371741
URL: http://llvm.org/viewvc/llvm-project?rev=371741&view=rev
Log:
test-release.sh: Don't use chrpath on Solaris
When trying to run test-release.sh on Solaris 11.4 for 9.0.0 rc4, I failed initially
because Solaris lacks chrpath. This patch accounts for that and allowed the run to
continue.
Tested on amd64-pc-solaris2.11 and sparcv9-sun-solaris2.11.
Differential Revision: https://reviews.llvm.org/D67484
Modified:
llvm/trunk/utils/release/test-release.sh
Modified: llvm/trunk/utils/release/test-release.sh
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/release/test-release.sh?rev=371741&r1=371740&r2=371741&view=diff
==============================================================================
--- llvm/trunk/utils/release/test-release.sh (original)
+++ llvm/trunk/utils/release/test-release.sh Thu Sep 12 07:50:32 2019
@@ -277,8 +277,11 @@ function check_program_exists() {
fi
}
-if [ "$System" != "Darwin" ]; then
+if [ "$System" != "Darwin" -a "$System" != "SunOS" ]; then
check_program_exists 'chrpath'
+fi
+
+if [ "$System" != "Darwin" ]; then
check_program_exists 'file'
check_program_exists 'objdump'
fi
@@ -444,7 +447,7 @@ function test_llvmCore() {
# Clean RPATH. Libtool adds the build directory to the search path, which is
# not necessary --- and even harmful --- for the binary packages we release.
function clean_RPATH() {
- if [ "$System" = "Darwin" ]; then
+ if [ "$System" = "Darwin" -o "$System" = "SunOS" ]; then
return
fi
local InstallPath="$1"
More information about the llvm-commits
mailing list