[cfe-dev] -ccc-host-triple x86_64-pc-win32-macho and diagnostic output changes.

谷汶翰 nowar100 at gmail.com
Tue Apr 19 22:12:50 PDT 2011


Hi,

I think you can write your own project using clang,
and customize your clang::DiagnosticClient to do what you want.

http://clang.llvm.org/doxygen/classclang_1_1DiagnosticClient.html
<http://clang.llvm.org/doxygen/classclang_1_1DiagnosticClient.html>
2011/4/20 Andrew Fish <andrew.fish at me.com>

> I'd like to set the output of the diagnostic messages to -fshow-column
> format for our triple, x86_64-pc-win32-macho, since we cross compile not on
> Windows. It looks like x86_64-pc-win32-macho triple converts the diagnostic
> format  from BootModePei.c:27:10 to BootModePei.c(27).
>
> Can some one give me a pointer as to where in the code base to find this,
> so I can fix it?
>
> Example:
>
> clang /Users/fish/work/edk2/InOsEmuPkg/BootModePei/BootModePei.c
> /Users/fish/work/edk2/InOsEmuPkg/BootModePei/BootModePei.c:27:10: fatal
> error: 'PiPei.h' file not found
> #include <PiPei.h>
>         ^
> 1 error generated.
>
> vs
>
> clang -ccc-host-triple x86_64-pc-win32-macho
>  /Users/fish/work/edk2/InOsEmuPkg/BootModePei/BootModePei.c
> /Users/fish/work/edk2/InOsEmuPkg/BootModePei/BootModePei.c(27) :  fatal
> error: 'PiPei.h' file not found
> #include <PiPei.h>
>         ^
> 1 error generated.
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



-- 
Best regards,
Wen-Han
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110420/a6cd85de/attachment.html>


More information about the cfe-dev mailing list