[cfe-dev] RFC: Clang driver redesign

Jonathan Sauer jonathan.sauer at gmx.de
Tue Nov 8 08:34:07 PST 2011


Hello,

> What's wrong with having a gcc compatibility layer for the driver which just translates from one option set to the other. I'm thinking of something like:
> 
> clang-gcc [gcc options]
> clang-g++ [g++ options]
> 
> clang [clang options]
> clang++ [clang++ options]
> 
> If anything, the clang-gcc and clang-g++ could just be shell script wrappers around clang.

Just use hard links and have clang inspect the program name on startup. It already does this to automatically pass the
C++ standard library to the linker when called as clang++ (IIRC).


Jonathan





More information about the cfe-dev mailing list