MCPcopy Index your code
hub / github.com/numpy/numpy / _c_compile

Function _c_compile

numpy/testing/_private/extbuild.py:185–200  ·  view source on GitHub ↗
(cfile, outputfilename, include_dirs, libraries,
               library_dirs)

Source from the content-addressed store, hash-verified

183
184
185def _c_compile(cfile, outputfilename, include_dirs, libraries,
186 library_dirs):
187 link_extra = []
188 if sys.platform == 'win32':
189 compile_extra = ["/we4013"]
190 link_extra.append('/DEBUG') # generate .pdb file
191 elif sys.platform.startswith('linux'):
192 compile_extra = [
193 "-O0", "-g", "-Werror=implicit-function-declaration", "-fPIC"]
194 else:
195 compile_extra = []
196
197 return build(
198 cfile, outputfilename,
199 compile_extra, link_extra,
200 include_dirs, libraries, library_dirs)
201
202
203def build(cfile, outputfilename, compile_extra, link_extra,

Callers 1

compile_extension_moduleFunction · 0.85

Calls 2

buildFunction · 0.85
startswithMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…