[issue26689] Add `has_flag` method to `distutils.CCompiler`

Sylvain Corlay report at bugs.python.org
Fri Aug 19 15:59:24 EDT 2016


Sylvain Corlay added the comment:

Thanks Ned. I posted a couple of messages on distutils-sig and got little attention.

I think that this feature is very important for detecting whether a compiler supports a certain flag like `-std=c++11` and provide a meaningful error when needed.

CMake has the same feature, implemented in a similar fashion (CHECK_CXX_COMPILER_FLAG).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26689>
_______________________________________


More information about the Python-bugs-list mailing list