From 5fdc7cba2ab94ef5d4cb9227c60aafa9b2f9732b Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 3 Oct 2011 08:02:58 +0000 Subject: Teach the logic for locating an installed GCC about the system root. This requires fixing a latent bug -- if we used the default host triple instead of an autodetected triple to locate GCC's installation, we didn't go back and fix the GCC triple. Correct that with a pile of hacks. This entire routine needs a major refactoring which I'm saving for a subsequent commit. Essentially, the detection of the GCC triple should be hoisted into the same routine as we locate the GCC installation: the first is intrinsically tied to the latter. Then the routine will just return the triple and base directory. Also start to bring the rest of the library search path logic under test, including locating crtbegin.o. Still need to test the multilib and other behaviors, but there are also bugs in the way of that. llvm-svn: 140995 --- .../basic_linux_tree/usr/lib/gcc/i386-unknown-linux/4.6.0/crtbegin.o | 0 .../basic_linux_tree/usr/lib/gcc/x86_64-unknown-linux/4.6.0/crtbegin.o | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 clang/test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux/4.6.0/crtbegin.o create mode 100644 clang/test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/x86_64-unknown-linux/4.6.0/crtbegin.o (limited to 'clang/test/Driver/Inputs/basic_linux_tree/usr/lib') diff --git a/clang/test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux/4.6.0/crtbegin.o b/clang/test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux/4.6.0/crtbegin.o new file mode 100644 index 00000000000..e69de29bb2d diff --git a/clang/test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/x86_64-unknown-linux/4.6.0/crtbegin.o b/clang/test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/x86_64-unknown-linux/4.6.0/crtbegin.o new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3