mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Don't try to guess the name of a .def file -- if one is supplied, use it,
otherwise just generate an '/export:' option.
This commit is contained in:
parent
83c3870e2b
commit
22e1bf7da5
1 changed files with 0 additions and 6 deletions
|
@ -528,12 +528,6 @@ class build_ext (Command):
|
|||
# kludges; they are to be avoided if possible!)
|
||||
|
||||
def_file = ext.export_symbol_file
|
||||
if def_file is None:
|
||||
source_dir = os.path.dirname (sources[0])
|
||||
ext_base = (string.split (ext.name, '.'))[-1]
|
||||
def_file = os.path.join (source_dir, "%s.def" % ext_base)
|
||||
if not os.path.exists (def_file):
|
||||
def_file = None
|
||||
|
||||
if def_file is not None:
|
||||
extra_args.append ('/DEF:' + def_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue