When using customized compilers (e.g. RTEMS gcc), the target compiler may have various include files and associated definitions that are not compatible with clang (e.g. the modifications are behind an #ifdef __gcc__ barrier for no apparent reason). This modification provides a -E flag which tells build-bom to use the "native" compiler to pre-process the input into a .c or .cc file before invoking clang on that result to obtain LLVM bitcode.
When using customized compilers (e.g. RTEMS gcc), the target compiler may have various include files and associated definitions that are not compatible with clang (e.g. the modifications are behind an
#ifdef __gcc__
barrier for no apparent reason). This modification provides a-E
flag which tellsbuild-bom
to use the "native" compiler to pre-process the input into a .c or .cc file before invoking clang on that result to obtain LLVM bitcode.