File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed
Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Cray")
5454elseif (CMAKE_CXX_COMPILER_ID STREQUAL "PGI" )
5555 set (CMK_COMPILER pgcc)
5656elseif (CMAKE_CXX_COMPILER_ID STREQUAL "XL" )
57- set (CMK_COMPILER xlc)
57+ # FIXME: No support for 32-bit XLC
58+ set (CMK_COMPILER xlc64)
5859elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR (CMAKE_CXX_COMPILER_ID STREQUAL "" AND (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "CYGWIN" )))
5960 set (CMK_COMPILER msvc )
6061else ()
@@ -90,7 +91,7 @@ if(NOT ARCH STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR)
9091 message (WARNING "Attempting to cross-compile from ${CMAKE_HOST_SYSTEM_PROCESSOR} to ${ARCH} . This is only supported for x86_64 -> i386 currently." )
9192 set (CMAKE_C_FLAGS -m32)
9293 set (CMAKE_CXX_FLAGS -m32)
93- set (CMAKE_FORTRAN_FLAGS -m32)
94+ set (CMAKE_Fortran_FLAGS -m32)
9495 else ()
9596 message (WARNING "Cross-compiling from ${CMAKE_HOST_SYSTEM_PROCESSOR} to ${ARCH} is not supported currently." )
9697 endif ()
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ set(CMK_FORTRAN_USES_ONESCORE 0)
44set (CMK_FORTRAN_USES_NOSCORE 0)
55set (CMK_FORTRAN_USES_ALLCAPS 0)
66
7- if (${ CMK_CAN_LINK_FORTRAN} )
8- if (${FortranCInterface_GLOBAL_SUFFIX} STREQUAL "__" )
7+ if (CMK_CAN_LINK_FORTRAN)
8+ if (" ${FortranCInterface_GLOBAL_SUFFIX} " STREQUAL "__" )
99 set (CMK_FORTRAN_USES_TWOSCORE 1)
10- elseif (${FortranCInterface_GLOBAL_SUFFIX} STREQUAL "_" )
10+ elseif (" ${FortranCInterface_GLOBAL_SUFFIX} " STREQUAL "_" )
1111 set (CMK_FORTRAN_USES_ONESCORE 1)
12- elseif (${FortranCInterface_GLOBAL_SUFFIX} STREQUAL "" )
12+ elseif (" ${FortranCInterface_GLOBAL_SUFFIX} " STREQUAL "" )
1313 set (CMK_FORTRAN_USES_NOSCORE 1)
14- elseif (${FortranCInterface_GLOBAL_CASE} STREQUAL "UPPER" )
14+ elseif (" ${FortranCInterface_GLOBAL_CASE} " STREQUAL "UPPER" )
1515 set (CMK_FORTRAN_USES_ALLCAPS 1)
1616 endif ()
1717endif ()
Original file line number Diff line number Diff line change 11COMMENT=" Enable 64-bit mode (-q64)"
22CMK_CC=' xlc_r -q64 '
33CMK_CXX=' xlC_r -q64 '
4- CMK_C_OPTIMIZE=' -O3 -qstrict -Q! '
5- CMK_CXX_OPTIMIZE=' -O3 -qstrict -Q! '
4+ CMK_C_OPTIMIZE=' -O3 -qstrict '
5+ CMK_CXX_OPTIMIZE=' -O3 -qstrict '
66CMK_PIC=' -qpic=small'
77
88CMK_LD=" $CMK_CC "
Original file line number Diff line number Diff line change 11COMMENT=" Enable 64-bit mode (-q64)"
22CMK_CC=' xlc_r -q64 '
33CMK_CXX=' xlC_r -q64 '
4- CMK_C_OPTIMIZE=' -O3 -qstrict -Q! '
5- CMK_CXX_OPTIMIZE=' -O3 -qstrict -Q! '
4+ CMK_C_OPTIMIZE=' -O3 -qstrict '
5+ CMK_CXX_OPTIMIZE=' -O3 -qstrict '
66CMK_LD=" $CMK_CC "
77CMK_LDXX=" $CMK_CXX "
88
You can’t perform that action at this time.
0 commit comments