mirror of
https://github.com/python/cpython.git
synced 2025-10-18 04:38:07 +00:00
Added 'debug' flag to 'find_library_file()'.
This commit is contained in:
parent
d9827c476c
commit
e5e6015e5a
2 changed files with 6 additions and 4 deletions
|
@ -682,10 +682,12 @@ class CCompiler:
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def find_library_file (self, dirs, lib):
|
def find_library_file (self, dirs, lib, debug=0):
|
||||||
"""Search the specified list of directories for a static or shared
|
"""Search the specified list of directories for a static or shared
|
||||||
library file 'lib' and return the full path to that file. Return
|
library file 'lib' and return the full path to that file. If
|
||||||
None if it wasn't found in any of the specified directories.
|
'debug' true, look for a debugging version (if that makes sense on
|
||||||
|
the current platform). Return None if 'lib' wasn't found in any of
|
||||||
|
the specified directories.
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
|
@ -317,7 +317,7 @@ class UnixCCompiler (CCompiler):
|
||||||
return "-l" + lib
|
return "-l" + lib
|
||||||
|
|
||||||
|
|
||||||
def find_library_file (self, dirs, lib):
|
def find_library_file (self, dirs, lib, debug=0):
|
||||||
|
|
||||||
for dir in dirs:
|
for dir in dirs:
|
||||||
shared = os.path.join (
|
shared = os.path.join (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue