[Distutils] compilation error (multiple compilations)
Andrew Kuchling
akuchlin@mems-exchange.org
Wed May 14 10:25:01 2003
On Tue, May 13, 2003 at 03:20:17PM -0700, Keith Jackson wrote:
>FYI, we finally figured this out sort of. The problem arises when a
>list containing only the empty string is passed into the
>extra_compile_args argument to Extension. This came up since we're
At least on platforms that use unixccompiler.py, the contents of the
extra_compile_args list ends up being passed to os.execvp(). An empty
string therefore ends up looking like the shell invocation 'gcc --foo --bar
--baz ""', and the zero-length string argument must mess things up.
Protection against this might be added by dropping all empty strings
from the list, but I don't think that's a good idea; if this was done,
how would you supply an empty string when you really want to?
--amk (www.amk.ca)
"Mr. Holmes, they were the footprints of a gigantic hound!"
-- Dr Mortimer, in "The Hound of the Baskervilles"