[PATCH] D66256: [AIX] Use GCC-style -std and warning options for XL
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 14:21:45 PDT 2019
hubert.reinterpretcast created this revision.
hubert.reinterpretcast added reviewers: jfb, jasonliu, daltenty, xingxue.
Herald added subscribers: dexonsmith, mgorny.
Herald added a project: LLVM.
LLVM now requires C++14. For IBM XL compilers with C++14 support, this
can be done with the GCC-style options.
Repository:
rL LLVM
https://reviews.llvm.org/D66256
Files:
cmake/modules/HandleLLVMOptions.cmake
Index: cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- cmake/modules/HandleLLVMOptions.cmake
+++ cmake/modules/HandleLLVMOptions.cmake
@@ -431,7 +431,7 @@
endif()
endif()
-elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
+elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE OR CMAKE_CXX_COMPILER_ID MATCHES "XL" )
append_if(LLVM_ENABLE_WERROR "-Werror" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
append_if(LLVM_ENABLE_WERROR "-Wno-error" CMAKE_REQUIRED_FLAGS)
add_flag_if_supported("-Werror=date-time" WERROR_DATE_TIME)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66256.215247.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190814/26d58a2e/attachment.bin>
More information about the llvm-commits
mailing list