@@ -143,57 +143,32 @@ elif [ "$SELECT_ARCH" = "IBMI73" ]; then
143143 echo " Compiler set to $COMPILER_LEVEL "
144144
145145elif [ " $SELECT_ARCH " = " AIXPPC" ]; then
146+ if [ " $NODEJS_MAJOR_VERSION " -gt " 19" ]; then
147+ export COMPILER_LEVEL=" 10"
148+ elif [ " $NODEJS_MAJOR_VERSION " -gt " 15" ]; then
149+ export COMPILER_LEVEL=" 8"
150+ elif [ " $NODEJS_MAJOR_VERSION " -gt " 9" ]; then
151+ export COMPILER_LEVEL=" 6"
152+ fi
153+
146154 case $NODE_NAME in
147155 * aix73* )
148- export COMPILER_LEVEL=" 10"
149156 echo " Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX 7.3"
150- export CC=" ccache-swig gcc-${COMPILER_LEVEL} "
151- export CXX=" ccache-swig g++-${COMPILER_LEVEL} "
152- export LINK=" g++-${COMPILER_LEVEL} "
153- echo " Compiler set to:" ` $CXX -dumpversion`
154- return
155157 ;;
156158 * aix72* )
157- echo " Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX7.2"
158- if [ " $NODEJS_MAJOR_VERSION " -gt " 15" ]; then
159- export PATH=" /opt/ccache-3.7.4/libexec:/opt/freeware/bin:$PATH "
160- export CC=" gcc" CXX=" g++" CXX_host=" g++"
161- unset LIBPATH
162- echo " Compiler set to 8.3"
163- return
164- elif [ " $NODEJS_MAJOR_VERSION " -gt " 9" ]; then
165- export PATH=" /opt/ccache-3.7.4/libexec:/opt/gcc-6.3/bin:/opt/freeware/bin:$PATH "
166- export CC=" gcc" CXX=" g++" CXX_host=" g++"
167- export LIBPATH=/opt/gcc-6.3/lib/gcc/powerpc-ibm-aix7.2.0.0/6.3.0/pthread/ppc64:/opt/gcc-6.3/lib
168- echo " Compiler set to 6.3"
169- return
170- else
171- echo " Compiler left as system default:" ` g++ -dumpversion`
172- return
173- fi
159+ echo " Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX 7.2"
174160 ;;
175-
176161 * aix71* )
177- echo " Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX7.1"
178- if [ " $NODEJS_MAJOR_VERSION " -gt " 15" ]; then
179- export PATH=" /opt/ccache-3.7.4/libexec:/opt/freeware/bin:$PATH "
180- export CC=" gcc" CXX=" g++" CXX_host=" g++"
181- unset LIBPATH
182- echo " Compiler set to 8.3"
183- return
184- elif [ " $NODEJS_MAJOR_VERSION " -gt " 9" ]; then
185- export PATH=" /opt/ccache-3.7.4/libexec:/opt/freeware/gcc6/bin:/opt/freeware/bin:$PATH "
186- export CC=" gcc-6" CXX=" g++-6" CXX_host=" g++-6"
187- unset LIBPATH
188- echo " Compiler set to 6.3"
189- return
190- else
191- echo " Compiler left as system default:" ` g++ -dumpversion`
192- return
193- fi
162+ echo " Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX 7.1"
194163 ;;
195164 esac
196165
166+ export CC=" gcc-${COMPILER_LEVEL} "
167+ export CXX=" g++-${COMPILER_LEVEL} "
168+ export LINK=" g++-${COMPILER_LEVEL} "
169+ export PATH=" /opt/ccache-3.7.4/libexec:/opt/freeware/bin:$PATH "
170+ echo " Compiler set to GCC" ` $CXX -dumpversion`
171+
197172elif [ " $SELECT_ARCH " = " X64" ]; then
198173 echo " Setting compiler for Node version $NODEJS_MAJOR_VERSION on x64"
199174
0 commit comments