Commit Graph

9 Commits

Author SHA1 Message Date
Sebastian Pop 9ec60dfe77 rename -ccc-host-triple into -target
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148582 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-20 22:01:23 +00:00
Eli Friedman 31cbe68430 Revert r148138; it's causing test failures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148141 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-13 21:33:06 +00:00
Sebastian Pop edd4f3c391 rename -ccc-host-triple into -target
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148138 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-13 20:37:02 +00:00
NAKAMURA Takumi b8bcce37b7 test/Driver/sysroot-flags.c: Tweak for Mingw MSYS bash.
MSYS substitutes path (that begins with "/") to de-mounted Windows path, even if it were nonexistent.
"/foo/bar" might be substituted to "C:/msysgit/foo/bar".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127861 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-18 03:21:33 +00:00
Chandler Carruth dc7b2ce33d Make this test resilient to whether or not the Linux toolchain renders the
sysroot flag to the link command as a joined flag or a separate flag.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121270 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-08 19:11:45 +00:00
Rafael Espindola c1da981bba Use ld directly on linux. Changes from the previous try:
*) Try to detect as much as possible from the system itself, not the distro.
   This should make it easier to port to a new distro and more likely to
   work on a unknown one.
*) The distro enum now doesn't include the arch. Just use the existing
   host detection support in LLVM.
*) Correctly handle --sysroot.

A small regression is that now clang will pass bitcode file to the linker.
This is necessary for the gold plugin support to work.

It might be better to detect this at configure/cmake time, but doing it in
c++ first is a lot easier.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118382 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-07 20:14:31 +00:00
Chandler Carruth d9d2a876a5 Try again to pacify the build bots. =/ I'm getting a Darwin machine to test on.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116918 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-20 08:24:03 +00:00
Chandler Carruth 6b40195e03 Remove a modern bash-ism and use simpler shell redirects. Hopefully will fix
build bots.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116914 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-20 07:16:18 +00:00
Chandler Carruth feee58ce26 Add support for the '--sysroot' flag, and an accompanying test of its
interactions with -isysroot and other driver commands.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116912 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-20 07:00:47 +00:00