[New-bugs-announce] [issue26689] Add `has_flag` method to `distutils.CCompiler`

Sylvain Corlay report at bugs.python.org
Sat Apr 2 20:31:21 EDT 2016


New submission from Sylvain Corlay:

I would be very useful to have a `has_flag` method in `distutils.CCompiler` similar to `has_function`, allowing to check if the compiler supports certain flags.

Cmake has a `CHECK_CXX_COMPILER_FLAG` macro for that purpose, which checks if a simple C++ file compiles with the said flag.

----------
components: Distutils
messages: 262805
nosy: dstufft, eric.araujo, sylvain.corlay
priority: normal
severity: normal
status: open
title: Add `has_flag` method to `distutils.CCompiler`
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list