forked from OSchip/llvm-project
[CMake] Add mapping for IBM XL -qnoeh and -qnortti
Summary: This patch maps in the `-qnoeh` and `-qnortti` options for building with IBM XL compilers. Reviewers: daltenty, xingxue, jasonliu Reviewed By: daltenty Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65669 llvm-svn: 368050
This commit is contained in:
parent
ad7e95df5a
commit
51b0032ff7
|
@ -28,6 +28,8 @@ function(llvm_update_compile_flags name)
|
|||
elseif(MSVC)
|
||||
list(APPEND LLVM_COMPILE_DEFINITIONS _HAS_EXCEPTIONS=0)
|
||||
list(APPEND LLVM_COMPILE_FLAGS "/EHs-c-")
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "XL")
|
||||
list(APPEND LLVM_COMPILE_FLAGS "-qnoeh")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -41,6 +43,8 @@ function(llvm_update_compile_flags name)
|
|||
list(APPEND LLVM_COMPILE_FLAGS "-fno-rtti")
|
||||
elseif (MSVC)
|
||||
list(APPEND LLVM_COMPILE_FLAGS "/GR-")
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "XL")
|
||||
list(APPEND LLVM_COMPILE_FLAGS "-qnortti")
|
||||
endif ()
|
||||
elseif(MSVC)
|
||||
list(APPEND LLVM_COMPILE_FLAGS "/GR")
|
||||
|
|
Loading…
Reference in New Issue