Skip to content

Commit

Permalink
CMake: Update langlvl on aix
Browse files Browse the repository at this point in the history
Lang level set to `extended0x` on c++, c remains on `extended`

Signed-off-by: Devin Nakamura <devinn@ca.ibm.com>
  • Loading branch information
dnakamura committed Oct 19, 2020
1 parent 72240e2 commit 1e2f01e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmake/modules/platform/toolcfg/xlc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ if(OMR_HOST_ARCH STREQUAL "ppc")
endif()

if(OMR_OS_AIX)
list(APPEND OMR_PLATFORM_COMPILE_OPTIONS
-qlanglvl=extended
-qinfo=pro
)
list(APPEND OMR_PLATFORM_COMPILE_OPTIONS -qinfo=pro)
list(APPEND OMR_PLATFORM_C_COMPILE_OPTIONS -qlanglvl=extended)
list(APPEND OMR_PLATFORM_CXX_COMPILE_OPTIONS -qlanglvl=extended0x)

set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lm -liconv -ldl -lperfstat")

Expand Down

0 comments on commit 1e2f01e

Please sign in to comment.