Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab606d3

Browse files
committed
Support library_dirs in check_type.
1 parent e0c7713 commit ab606d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

numpy/distutils/command/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def check_decl(self, symbol,
165165

166166
return self.try_compile(body, headers, include_dirs)
167167

168-
def check_type_size(self, type_name, headers=None, include_dirs=None):
168+
def check_type_size(self, type_name, headers=None, include_dirs=None, library_dirs=None):
169169
"""Check size of a given type."""
170170
# XXX: should also implement the cross-compiling version (using binary
171171
# search + array indexing, see AC_CHECK_SIZEOF).
@@ -211,7 +211,7 @@ def check_type_size(self, type_name, headers=None, include_dirs=None):
211211
size = None
212212
try:
213213
src, obj, exe = self._link(body, headers, include_dirs,
214-
[], [], 'c')
214+
[], library_dirs, 'c')
215215
#exe = os.path.join('.', exe)
216216
exitstatus, output = exec_command(exe, execute_in='.')
217217
if hasattr(os, 'WEXITSTATUS'):

0 commit comments

Comments
 (0)