[AIX] For XL, pick GCC-compatible std & default warning options
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 15 Aug 2019 22:23:53 +0000 (22:23 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 15 Aug 2019 22:23:53 +0000 (22:23 +0000)
commit67af3fa7caa2daddddf4a9aa7cefbd33d8d51921
treef47e56b18486eea51647984b6f5a6e18e0d3bc43
parent5c38ca35346f3aa8c04dc827a403c6ec605d8acc
[AIX] For XL, pick GCC-compatible std & default warning options

Summary:
LLVM now requires C++14. For IBM XL compilers with C++14 support, this
can be done with the GCC-style options. The relevant block in the CMake
file is split up into smaller parts as part of this patch to allow the
common cases to be shared.

Reviewers: jfb, jasonliu, daltenty, xingxue

Reviewed By: jfb, xingxue

Subscribers: mstorsjo, mgorny, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66256

llvm-svn: 369058
llvm/cmake/modules/HandleLLVMOptions.cmake