minor
[charm.git] / src / arch / pami-bluegeneq / cc-xlc.sh
1
2 XLC_TYPICAL_PRE=/opt/ibmcmp/
3 if test -d /soft/compilers/ibmcmp-may2012
4 then
5 XLC_TYPICAL_PRE=/soft/compilers/ibmcmp-may2012
6 fi
7
8 XLC_PRE=$XLC_TYPICAL_PRE/vacpp/bg/12.1
9
10 XLC_TYPICAL_POST=bin/bg
11 XLC_POST=$XLC_TYPICAL_POST
12
13 # if no floor set, use typical floor path
14 if test -n "$BGQ_XLC_PRE"
15 then
16   XLC_PRE=$BGQ_XLC_PRE
17 fi
18
19 XLC_F=$XLC_TYPICAL_PRE/xlf/bg/14.1
20 CMK_CC="$XLC_PRE/${XLC_POST}xlc_r -qcpluscmt -qhalt=e $BGQ_INC -qnokeyword=__int128"
21 CMK_CXX="$XLC_PRE/${XLC_POST}xlC_r -qhalt=e $BGQ_INC -qnokeyword=__int128"
22 CMK_LD="$CMK_CC"
23 CMK_LDXX="$CMK_CXX"
24 CMK_CF77="$XLC_F/${XLC_POST}xlf "
25 CMK_CF90="$XLC_F/${XLC_POST}xlf90  -qsuffix=f=f90" 
26 CMK_CF90_FIXED="$XLC_PRE/xlf/8.1/${XLC_POST}xlf90 " 
27 CMK_C_OPTIMIZE='-O3 -Q'
28 CMK_CXX_OPTIMIZE='-O3 -Q'
29 CMK_ENABLE_C11='-qlanglvl=extc1x'
30 CMK_ENABLE_CPP11='-qlanglvl=extended0x'
31
32 CMK_AR='ar cq'
33 CMK_NM='nm '
34 CMK_QT="aix"
35 #CMK_NATIVE_CC="/opt/ibmcmp/vacpp/bg/9.0/bin/xlc"
36 #CMK_NATIVE_CXX="/opt/ibmcmp/vacpp/bg/9.0/bin/xlC"
37 CMK_NATIVE_LD="$CMK_NATIVE_CC"
38 CMK_NATIVE_LDXX="$CMK_NATIVE_CXX"
39 CMK_RANLIB="ranlib"
40 CMK_F90LIBS="-L$XLC_F/lib -lxlf90 -lxlopt -lxl -lxlfmath"