[cfe-dev] RFC: Clang driver redesign
jonathan.sauer at gmx.de
Tue Nov 8 10:34:07 CST 2011
> 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).
More information about the cfe-dev