LFCS 2012: LLVM and Linux
Posted May 1, 2012 22:29 UTC (Tue) by kmccarty
In reply to: LFCS 2012: LLVM and Linux
Parent article: LFCS 2012: LLVM and Linux
Yes, it changed. At one time you needed to hack the source. Then you needed to use --with-cxx-include-root and --with-cxx-include-arch at configure-time, now you just use --with-gcc-toolchain and it does the right thing. It took a while getting there though.
Thanks much for the update, this appears to work as advertised. I guess it is only available in SVN trunk, though, not in the 3.0 release?
I can get rid of my local Clang patches except for a couple lines to disable adding the --no-add-needed linker option when "IsRedhat(Distro)" returns true. (I'm not sure whether this distro autodetection is still enabled when GCC_INSTALL_PREFIX is pre-#define'd, but I didn't want to chance having to do yet another rebuild.)
I was even able to remove a bunch of -isystem flags pointing at GCC headers from the Clang-invoking wrapper scripts I have. I can't say that the relevant parts of Clang source code got very much prettier, though ;-)
to post comments)