[PATCH] D65669: [CMake] Add mapping for IBM XL -qnoeh and -qnortti
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 11:29:20 PDT 2019
hubert.reinterpretcast created this revision.
hubert.reinterpretcast added reviewers: daltenty, xingxue, jasonliu.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
This patch maps in the `-qnoeh` and `-qnortti` options for building with IBM XL compilers.
Repository:
rL LLVM
https://reviews.llvm.org/D65669
Files:
cmake/modules/AddLLVM.cmake
llvm/
llvm/include/
llvm/include/llvm/
llvm/include/llvm/Support/
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake
+++ cmake/modules/AddLLVM.cmake
@@ -28,6 +28,8 @@
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 @@
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")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65669.213096.patch
Type: text/x-patch
Size: 744 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190802/118ff8ba/attachment.bin>
More information about the llvm-commits
mailing list