From: Tom Wright <tom.wright@re...> - 2009-03-11 15:42:24
Hi all -
We're trying to use CIL as a library to transform some C as part of a
build process, targetting Visual C++. We can parse and transform the
code, but when we serialise the transformed tree, the attributes are
emitted in "__attribute__" form, rather than VC's __declspec form.
At the start of our driver program we have:
Cil.msvcMode := true;;
... to try to tell the writer to output the MSVC form (which appears to
be what cilly uses in the same situation).
Can anyone give us some pointers on how to control the code generation?