numpy.distutils.ccompiler_opt.CCompilerOpt.cc_normalize_flags#
method
- distutils.ccompiler_opt.CCompilerOpt.cc_normalize_flags(flags)[source]#
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']