Go to file
Chandler Carruth fd3cc70ed4 [multilib] Teach Clang's code about multilib by threading
a CLANG_LIBDIR_SUFFIX down from the build system and using that as part
of the default resource dir computation.

Without this, essentially nothing that uses the clang driver works when
building clang with a libdir suffix. This is probably the single biggest
missing piece of support for multilib as without this people could hack
clang to end up installed in the correct location, but it would then
fail to find its own basic resources. I know of at least one distro that
has some variation on this patch to hack around this; hopefully they'll
be able to use the libdir suffix functionality directly as the rest of
these bits land.

This required fixing a copy of the code to compute Clang's resource
directory that is buried inside of the frontend (!!!). It had bitrotted
significantly relative to the driver code. I've made it essentially
a clone of the driver code in order to keep tests (which use cc1
heavily) passing. This copy should probably just be removed and the
frontend taught to always rely on an explicit resource directory from
the driver, but that is a much more invasive change for another day.

I've also updated one test which actually encoded the resource directory
in its checked output to tolerate multilib suffixes.

Note that this relies on a prior LLVM commit to add a stub to the
autoconf build system for this variable.

llvm-svn: 224924
2014-12-29 12:09:08 +00:00
clang [multilib] Teach Clang's code about multilib by threading 2014-12-29 12:09:08 +00:00
clang-tools-extra Fixed a typo in a comment. NFC. 2014-12-19 15:37:02 +00:00
compiler-rt [sanitizer-common] Fixing the ASan test build failure on OS X 2014-12-29 02:18:59 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Remove wrong semi-colons 2014-12-19 09:18:23 +00:00
libcxx Prevent ill-formed instantiation of __invoke_of<...> during the evaluation of a bind expression. Fixes PR22003. 2014-12-23 05:54:34 +00:00
libcxxabi Silence warnings in libunwind. 2014-12-21 14:22:00 +00:00
lld [Mips] Replace stderr output by the `llvm_unreachable` call 2014-12-25 09:23:47 +00:00
lldb Add support for frameless function compact unwind encodings on x86_64/i386. 2014-12-22 11:02:02 +00:00
llgo irgen: do not emit an extra terminator for panic thunks 2014-12-28 22:39:01 +00:00
llvm [multilib] Add support to the autoconf build to substitute 2014-12-29 11:58:17 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly (diagnostics) fix typo in test... 2014-12-19 17:22:46 +00:00