[llvm] r368050 - [CMake] Add mapping for IBM XL -qnoeh and -qnortti
Hubert Tong via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 6 08:08:13 PDT 2019
Author: hubert.reinterpretcast
Date: Tue Aug 6 08:08:13 2019
New Revision: 368050
URL: http://llvm.org/viewvc/llvm-project?rev=368050&view=rev
Log:
[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
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=368050&r1=368049&r2=368050&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Tue Aug 6 08:08:13 2019
@@ -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")
More information about the llvm-commits
mailing list