Fw: [Distutils] Duelling SWIG patches
Thomas Heller
thomas.heller@ion-tof.com
Fri, 23 Jun 2000 10:18:38 +0200
Thomas Heller
ION-TOF GmbH
----- Original Message -----
From: "Thomas Heller" <thomas.heller@ion-tof.com>
To: <distutils-sig@python.org>
Sent: Friday, June 23, 2000 9:08 AM
Subject: Re: [Distutils] Duelling SWIG patches
> >
> > Greg Ward wrote:
> > [snip]
> > > OS-agnostic, but is C-centric. Is it possible to tell from a SWIG .i
> > > file whether it is destined to be C or C++? I can't think of a good
way
> > [snip]
>
> and Michael wrote:
> >
> > I'm pretty sure that the only way to do this short of parsing the file
is
> to
> > run "swig" with no options and then (if it fails) run "swig -c++"
> (enabling
> > the C++ processing features). This seems more like something you'd want
> to
> > do during configuration then during the build.
> Unfortunately swig does not fail in C-mode on an I-file
> which is destined for C++: The C-compiler will fail with syntax
> errors.
>
> Thomas
>
>
>