On Sun, 25 Mar 2012, Basile Starynkevitch wrote:
On Sun, 25 Mar 2012 20:30:31 +0200
Basile Starynkevitch <bas...@starynkevitch.net> wrote:
How can a plugin know that cc1 was compiled with C++ or just with
plain C?
nm thefile | grep _Z
(possibly nm -D)
You can also look for --disable-bootstrap or --disable-build-with-cxx in
the configure options. Or you can just assume that it is built as C++,
which is the default after all. People who have anything different should
have asked for it and thus know what to expect.
--
Marc Glisse