[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-dev
Subject: Re: [cfe-dev] -emit-html ignored
From: Jordan Rose <jediknil () belkadan ! com>
Date: 2012-05-30 3:54:53
Message-ID: CBFCB151-E54F-42E9-8643-887A93973E5A () belkadan ! com
[Download RAW message or body]
This works:
clang test.c -fsyntax-only -Xclang -emit-html -o test.html
The -Xclang flag causes the next flag to be passed directly to the actual compiler \
call (-cc1). We don't advertise it because those options are not guaranteed to be \
stable, so anyone writing scripts depending on -Xclang or -cc1 should be prepared to \
deal with breakage when they update their Clang. (At least, that's my understanding.)
Jordan
P.S. I didn't know about -emit-html...cool!
On May 21, 2012, at 16:14, Foivos Zakkak wrote:
> Yes, that did the trick :)
>
> Is there any way it could search my C_INCLUDE_PATH instead of having to
> pass all the paths with -I?
>
> Thank you
> Foivos
>
> On 05/22/2012 02:07 AM, Seth Cantrell wrote:
> > I believe you need the first argument to be -cc1
> >
> > At least that worked for me.
> >
> > On May 21, 2012, at 5:44 PM, Foivos Zakkak wrote:
> >
> > > Hi,
> > >
> > > i am trying to produce an html file with the source code of test.c,
> > > however i am getting the following
> > >
> > > $ clang test.c -emit-html -o test.html
> > > clang: warning: argument unused during compilation: '-emit-html'
> > >
> > > resulting in test.html to be the compiled executable of test.c
> > >
> > > Thank you in advance
> > > Foivos
> > > _______________________________________________
> > > cfe-dev mailing list
> > > cfe-dev@cs.uiuc.edu
> > > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic