Now that LLVM moved to C++14, I suspect that 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 further down in the invocation it was being overriding because we are passing -std=c++11. Given that this unit test is using LLVM headers, this is bound to break sooner than later, regardless of my change.