[cfe-dev] Linking ProfileRT when using -nodefaultlibs

David Chisnall David.Chisnall at cl.cam.ac.uk
Mon Nov 10 11:56:58 PST 2014

On 10 Nov 2014, at 19:40, Eric Fiselier <eric at efcs.ca> wrote:

> > The reason we use -nodefaultlibs is to avoid linking the system's libc++. There's a -nostdinc++, maybe there should be a -nostdlib++? Or perhaps -stdlib=none?
> -nostdlib already exists but it acts like -nodefaultlibs and it drops the startup files as well. 
> I would support -stdlib=none but I'm hesitant to start depending on Clang only flags. It would be nice to not have to special case GCC.

I thought that gcc already supported -nostdlib++ and we only had these convolutions because clang didn't...


More information about the cfe-dev mailing list