[llvm] 97eb3bb - [test-release.sh] Do not run chrpath on AIX.

Amy Kwan via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 3 13:39:42 PST 2021


Author: Amy Kwan
Date: 2021-12-03T15:36:29-06:00
New Revision: 97eb3bb80ff9caa705c174c9adc2d683d8da79a3

URL: https://github.com/llvm/llvm-project/commit/97eb3bb80ff9caa705c174c9adc2d683d8da79a3
DIFF: https://github.com/llvm/llvm-project/commit/97eb3bb80ff9caa705c174c9adc2d683d8da79a3.diff

LOG: [test-release.sh] Do not run chrpath on AIX.

Upon testing the use of test-release.sh on AIX, the script initially fails
because chrpath is not present on AIX. This patch adds checks for AIX and allows
the script to continue running to completion.

Differential Revision: https://reviews.llvm.org/D115046

Added: 
    

Modified: 
    llvm/utils/release/test-release.sh

Removed: 
    


################################################################################
diff  --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh
index 6d3161990a158..3609557a3bdca 100755
--- a/llvm/utils/release/test-release.sh
+++ b/llvm/utils/release/test-release.sh
@@ -307,7 +307,7 @@ function check_program_exists() {
   fi
 }
 
-if [ "$System" != "Darwin" -a "$System" != "SunOS" ]; then
+if [ "$System" != "Darwin" ] && [ "$System" != "SunOS" ] && [ "$System" != "AIX" ]; then
   check_program_exists 'chrpath'
 fi
 
@@ -457,7 +457,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" -o "$System" = "SunOS" ]; then
+  if [ "$System" = "Darwin" ] || [ "$System" = "SunOS" ] || [ "$System" = "AIX" ]; then
     return
   fi
   local InstallPath="$1"


        


More information about the llvm-commits mailing list