[Python-Dev] -C in Setup files (original) (raw)

Andrew Kuchling akuchlin@mems-exchange.org
Fri, 22 Mar 2002 21:56:14 -0500


On Fri, Mar 22, 2002 at 09:37:53PM -0500, Guido van Rossum wrote:

to add "cpparg" to the compiler arguments? Is that because you need a way to transparently pass compiler arguments, and the C in -C can stand for compiler???

Yes, this is what Pete is after. Perhaps he thought -C was the relevant option because of 'C for compiler', and because Setup.dist says " is anything starting with -I, -D, -U or -C" in a comment, which can be taken to imply that -C takes an argument (the other three options all do).

Why is -C in makesetup at all? It only seems relevant when also used with -E, and makesetup will add -E to the link line, not the compile line.

Anyway, looking at makesetup, there's no way to add arbitrary switches for the C compiler. Maybe add -Xcompiler, by analogy with -Xlinker?

--amk (www.amk.ca) "You're very kind." "I am merely civilized." -- The Doctor and Monarch, in "Four to Doomsday"