[cfe-dev] RFC: Clang driver redesign

James Molloy james.molloy at arm.com
Tue Nov 8 08:40:05 PST 2011


Guys, these are implementation details that are completely orthogonal to the
driver design.

Just trying to keep things on track... :)

-----Original Message-----
From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On
Behalf Of Jonathan Sauer
Sent: 08 November 2011 16:34
To: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] RFC: Clang driver redesign

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


_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev








More information about the cfe-dev mailing list