[CMake] Check for C++14 instead of C++11
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 15 Aug 2019 04:42:15 +0000 (04:42 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 15 Aug 2019 04:42:15 +0000 (04:42 +0000)
commit4d474e078ac729d74aca406d688060c9638dd9f2
tree0ac3db13981c9e5296c7c82cd7a0d5857e71aec3
parenta7d4cec4372403506208bc5599502c0a9e48fc57
[CMake] Check for C++14 instead of C++11

Now that LLVM moved to C++14, `COMPILER_RT_HAS_STD_CXX11_FLAG` should
become `COMPILER_RT_HAS_STD_CXX14_FLAG`.

I ran into this issue when replacing llvm::make_unique with
std::make_unique in an X-ray unit test. We are correctly passing
`-std=c++14`, but this got overwritten further down the invocation by
the compiler-rt flags. Given that this unit test is using LLVM headers,
this is bound to break sooner than later, regardless of my change.

Differential revision: https://reviews.llvm.org/D66271

llvm-svn: 368960
compiler-rt/CMakeLists.txt
compiler-rt/cmake/config-ix.cmake