MCPcopy Create free account
hub / github.com/numpy/numpy / cc_test_flags

Method cc_test_flags

numpy/distutils/ccompiler_opt.py:1081–1091  ·  view source on GitHub ↗

Returns True if the compiler supports 'flags'.

(self, flags)

Source from the content-addressed store, hash-verified

1079
1080 @_Cache.me
1081 def cc_test_flags(self, flags):
1082 """
1083 Returns True if the compiler supports 'flags'.
1084 """
1085 assert(isinstance(flags, list))
1086 self.dist_log("testing flags", flags)
1087 test_path = os.path.join(self.conf_check_path, "test_flags.c")
1088 test = self.dist_test(test_path, flags)
1089 if not test:
1090 self.dist_log("testing failed", stderr=True)
1091 return test
1092
1093 @_Cache.me
1094 def cc_test_cexpr(self, cexpr, flags=[]):

Callers 4

__init__Method · 0.95
lib_opts_if_msvcFunction · 0.80
feature_flagsMethod · 0.80
feature_can_autovecMethod · 0.80

Calls 3

dist_testMethod · 0.80
dist_logMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected