-ccc-host-triple x86_64-pc-win32-macho and diagnostic output changes.

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.

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

2011/4/20 Andrew Fish <andrew.fish@me.com>