[LLVMdev] Do we still need LLVM_HAS_INITIALIZER_LISTS? (original) (raw)

Justin Bogner mail at justinbogner.com
Mon Feb 16 15:56:56 PST 2015


Currently, LLVM_HAS_INITIALIZER_LISTS is set based on

__has_feature(cxx_generalized_initializers) && !defined(_MSC_VER)

Based on the docs, we should be able to drop the _MSC_VER check now that we've moved to VS2013. Can somebody confirm that?

The other problem is that GCC doesn't recognize __has_feature, so this is essentially only enabled for clang. If we're keeping this check it should really check the GCC version as well - they've had these for quite a while now.



More information about the llvm-dev mailing list