Commit 885fa520 authored by Guido van Rossum's avatar Guido van Rossum

After variable expansion, what was formerly a single word can now

contain multiple words, all of which may have to be joined with the
path of the extension directory.
(Sjoerd)
parent e5d581b2
...@@ -44,13 +44,14 @@ def select(e, mods, vars, mod, skipofiles): ...@@ -44,13 +44,14 @@ def select(e, mods, vars, mod, skipofiles):
if not w: if not w:
continue continue
w = expandvars(w, vars) w = expandvars(w, vars)
if skipofiles and w[-2:] == '.o': for w in string.split(w):
continue if skipofiles and w[-2:] == '.o':
if w[0] != '-' and w[-2:] in ('.o', '.a'): continue
w = os.path.join(e, w) if w[0] != '-' and w[-2:] in ('.o', '.a'):
if w[:2] in ('-L', '-R'): w = os.path.join(e, w)
w = w[:2] + os.path.join(e, w[2:]) if w[:2] in ('-L', '-R'):
files.append(w) w = w[:2] + os.path.join(e, w[2:])
files.append(w)
return files return files
cc_flags = ['-I', '-D', '-U'] cc_flags = ['-I', '-D', '-U']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment