[cfe-dev] computed goto/labels as values in interpreters

James Molloy james at jamesmolloy.co.uk
Sat Sep 22 07:51:44 PDT 2012


Hi Carsten,

He's asking for preprocessed source. If you run clang -cc1 in '-E'
mode instead of the normal '-c', it will run only the preprocessor and
emit source that is easy to compile elsewhere without dependencies.

Cheers,

James

On 22 September 2012 14:03, Carsten Mattner <carstenmattner at gmail.com> wrote:
> On Sat, Sep 22, 2012 at 1:38 PM, James Molloy <james at jamesmolloy.co.uk> wrote:
>> Hi Carsten,
>>
>> Just run clang++ normally with the extra option -###. That'll tell you
>> the exact cc1 command line you need.
>
> Thanks, I was able to get the missing flags and had to add two -I paths.
>
> I still cannot create the .ii files Rafael asked for. Any hints?
>
> It's really trivial to build Erlang and you don't need any special dependencies
> except that wxErlang naturally requires wxWidgets 2.8, if you want to try:
> $ git clone git://github.com/erlang/otp.git
> $ cd otp
> $ export CC=clang CXX=clang++
> $ ./otp_build setup -a
> # if you have wxWidgets and OpenGL headers installed,
> # you will see the native part of wxErlang building and infinite looping



More information about the cfe-dev mailing list