Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0a983c44
Commit
0a983c44
authored
Aug 04, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 'debug' flag to 'find_library_file()', and changed code to handle it.
parent
ead1a73e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
Lib/distutils/msvccompiler.py
Lib/distutils/msvccompiler.py
+11
-6
No files found.
Lib/distutils/msvccompiler.py
View file @
0a983c44
...
...
@@ -474,13 +474,18 @@ class MSVCCompiler (CCompiler) :
return
self
.
library_filename
(
lib
)
def
find_library_file
(
self
,
dirs
,
lib
):
def
find_library_file
(
self
,
dirs
,
lib
,
debug
=
0
):
# Prefer a debugging library if found (and requested), but deal
# with it if we don't have one.
if
debug
:
try_names
=
[
lib
+
"_d"
,
lib
]
else
:
try_names
=
[
lib
]
for
dir
in
dirs
:
libfile
=
os
.
path
.
join
(
dir
,
self
.
library_filename
(
lib
))
if
os
.
path
.
exists
(
libfile
):
return
libfile
for
name
in
try_names
:
libfile
=
os
.
path
.
join
(
dir
,
self
.
library_filename
(
name
))
if
os
.
path
.
exists
(
libfile
):
return
libfile
else
:
# Oops, didn't find it in *any* of 'dirs'
return
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment