Skip to content

Commit 51b0032

Browse files
[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
1 parent ad7e95d commit 51b0032

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/cmake/modules/AddLLVM.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ function(llvm_update_compile_flags name)
2828
elseif(MSVC)
2929
list(APPEND LLVM_COMPILE_DEFINITIONS _HAS_EXCEPTIONS=0)
3030
list(APPEND LLVM_COMPILE_FLAGS "/EHs-c-")
31+
elseif (CMAKE_CXX_COMPILER_ID MATCHES "XL")
32+
list(APPEND LLVM_COMPILE_FLAGS "-qnoeh")
3133
endif()
3234
endif()
3335

@@ -41,6 +43,8 @@ function(llvm_update_compile_flags name)
4143
list(APPEND LLVM_COMPILE_FLAGS "-fno-rtti")
4244
elseif (MSVC)
4345
list(APPEND LLVM_COMPILE_FLAGS "/GR-")
46+
elseif (CMAKE_CXX_COMPILER_ID MATCHES "XL")
47+
list(APPEND LLVM_COMPILE_FLAGS "-qnortti")
4448
endif ()
4549
elseif(MSVC)
4650
list(APPEND LLVM_COMPILE_FLAGS "/GR")

0 commit comments

Comments
 (0)