]> granicus.if.org Git - icu/commitdiff
ICU-22086 Add ibm-clang_r/ibm-clang++_r to runConfigureICU
authorWilliam Marlow <william.marlow@ibm.com>
Tue, 12 Jul 2022 09:09:30 +0000 (10:09 +0100)
committerMarkus Scherer <markus.icu@gmail.com>
Thu, 14 Jul 2022 17:38:59 +0000 (17:38 +0000)
icu4c/source/runConfigureICU

index 25963505e440204ec9db5160b85791bc7cd32b6a..3f8576da695676750e1540cb8b40038c25a2f4cf 100755 (executable)
@@ -38,6 +38,7 @@ The following names can be supplied as the argument for platform:
 
     AIX                 Use the IBM XL xlclang/xlclang compilers on AIX
     AIX/GCC             Use the GNU gcc/g++ compilers on AIX
+    AIX/OpenXL          Use the IBM Open XL ibm-clang_r/ibm-clang++_r compilers on AIX
     Cygwin              Use the GNU gcc/g++ compilers on Cygwin
     Cygwin/MSVC         Use the Microsoft Visual C++ compiler on Cygwin
     Cygwin/MSVC2005     Use the Microsoft Visual C++ 2005 compiler on Cygwin
@@ -154,6 +155,20 @@ case $platform in
         DEBUG_CFLAGS='-g -O0'
         DEBUG_CXXFLAGS='-g -O0'
         ;;
+    AIX/OpenXL)
+        THE_OS=AIX
+        THE_COMP="ibm-clang_r"
+        CC=`which ibm-clang_r`; export CC
+        if [ ! -x $CC ]; then
+           echo "ERROR: ibm-clang_r was not found, please check the PATH to make sure it is correct."; exit 1
+        fi
+        CXX=`which ibm-clang++_r`; export CXX
+        if [ ! -x $CXX ]; then
+           echo "ERROR: ibm-clang++_r was not found, please check the PATH to make sure it is correct."; exit 1
+        fi
+        RELEASE_CFLAGS="-O3"
+        RELEASE_CXXFLAGS="-O3"
+       ;;
     Solaris)
         THE_OS=SOLARIS
         THE_COMP="Sun's CC"