<div dir="ltr"><div><div>Hi All,<br><br></div><div>For now, llvm is not built in C++11 by default. This can hovever be activated with each one's favorite configuration tool :<br><br></div><div>> configure --enable-cxx11 ...<br>
</div><div>or<br></div><div>> cmake -DLLVM_ENABLE_CXX11:BOOL=ON ...<br></div><div><br></div><div>The attached patch adds some sanity check on the compiler revision to both cmake and configure, so that we fail early (i.e. configure time) and clearly when the compiler's revision is known not to fit our requirements for C++11 support. The revisions have been extracted from the thread initiated by Chandler on cfe-dev/llvm-dev:<br>
</div><div> - g++ >= 4.7.1<br></div><div> - clang++ >= 3.1<br></div><div> - VS >= 2012<br><br></div><div>If the user's compiler is not in the above troika, then we simply trust the user knows what he does...<br>
</div><div><br></div><div>Although I did my best to handle the windows case, I do not have such a platform handy, and could not test it : I would appreciate comments/tests on the windows related part.<br></div><div><br></div>
<div>The logical follow-up to this patch would be to make the sanity check unconditionnal once we have decided to switch to C++11. Until then, the checks can be validated in the different environments and tuned accordingly.<br>
<br></div>Cheers,<br>--<br></div>Arnaud<br></div>