class documentation

class _CCompiler:

Known subclasses: numpy.distutils.ccompiler_opt.CCompilerOpt

View In Hierarchy

A helper class for CCompilerOpt containing all utilities that related to the fundamental compiler's functions.

Attributes

cc_on_x86 : bool
True when the target architecture is 32-bit x86
cc_on_x64 : bool
True when the target architecture is 64-bit x86
cc_on_ppc64 : bool
True when the target architecture is 64-bit big-endian PowerPC
cc_on_armhf : bool
True when the target architecture is 32-bit ARMv7+
cc_on_aarch64 : bool
True when the target architecture is 64-bit Armv8-a+
cc_on_noarch : bool
True when the target architecture is unknown or not supported
cc_is_gcc : bool
True if the compiler is GNU or if the compiler is unknown
cc_is_clang : bool
True if the compiler is Clang
cc_is_icc : bool
True if the compiler is Intel compiler (unix like)
cc_is_iccw : bool
True if the compiler is Intel compiler (msvc like)
cc_is_nocc : bool
True if the compiler isn't supported directly, Note: that cause a fail-back to gcc
cc_has_debug : bool
True if the compiler has debug flags
cc_has_native : bool
True if the compiler has native flags
cc_noopt : bool
True if the compiler has definition 'DISABLE_OPT*', or 'cc_on_noarch' is True
cc_march : str
The target architecture name, or "unknown" if the architecture isn't supported
cc_name : str
The compiler name, or "unknown" if the compiler isn't supported
cc_flags : dict
Dictionary containing the initialized flags of _Config.conf_cc_flags
Method __init__ Undocumented
Method ​_cc​_normalize​_unix Undocumented
Method ​_cc​_normalize​_win Undocumented
Method cc​_normalize​_flags Remove the conflicts that caused due gathering implied features flags.
Method cc​_test​_flags Returns True if the compiler supports 'flags'.
Class Variable ​_cc​_normalize​_arch​_ver Undocumented
Class Variable ​_cc​_normalize​_unix​_frgx Undocumented
Class Variable ​_cc​_normalize​_unix​_krgx Undocumented
Class Variable ​_cc​_normalize​_unix​_mrgx Undocumented
Class Variable ​_cc​_normalize​_win​_frgx Undocumented
Class Variable ​_cc​_normalize​_win​_mrgx Undocumented
Instance Variable cc​_flags Undocumented
Instance Variable cc​_is​_cached Undocumented
Instance Variable cc​_is​_gcc Undocumented
Instance Variable cc​_march Undocumented
Instance Variable cc​_name Undocumented
Instance Variable cc​_noopt Undocumented
def __init__(self):

Undocumented

def _cc_normalize_unix(self, flags):

Undocumented

def _cc_normalize_win(self, flags):

Undocumented

def cc_normalize_flags(self, flags):

Remove the conflicts that caused due gathering implied features flags.

Parameters

'flags' list, compiler flags
flags should be sorted from the lowest to the highest interest.

Returns

list, filtered from any conflicts.

Examples

>>> self.cc_normalize_flags(['-march=armv8.2-a+fp16', '-march=armv8.2-a+dotprod'])
['armv8.2-a+fp16+dotprod']
>>> self.cc_normalize_flags(
    ['-msse', '-msse2', '-msse3', '-mssse3', '-msse4.1', '-msse4.2', '-mavx', '-march=core-avx2']
)
['-march=core-avx2']
@_Cache.me
def cc_test_flags(self, flags):
Returns True if the compiler supports 'flags'.
_cc_normalize_arch_ver =

Undocumented

_cc_normalize_unix_frgx =

Undocumented

_cc_normalize_unix_krgx =

Undocumented

_cc_normalize_unix_mrgx =

Undocumented

_cc_normalize_win_frgx =

Undocumented

_cc_normalize_win_mrgx =

Undocumented

cc_flags: dict =

Undocumented

cc_is_cached: bool =

Undocumented

cc_is_gcc: bool =

Undocumented

cc_march =

Undocumented

cc_name =

Undocumented

cc_noopt: bool =

Undocumented