diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-12-08 19:11:45 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-12-08 19:11:45 +0000 |
commit | 174305b94e484550efcf54e6ff46396585729480 (patch) | |
tree | ecc34dea8b3b2c34a83c6934d3f07257d66d064c /clang/test/Driver/sysroot-flags.c | |
parent | 7b81dfd1cca46552fc2fed28b8c8495e4bc22390 (diff) | |
download | bcm5719-llvm-174305b94e484550efcf54e6ff46396585729480.tar.gz bcm5719-llvm-174305b94e484550efcf54e6ff46396585729480.zip |
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.
llvm-svn: 121270
Diffstat (limited to 'clang/test/Driver/sysroot-flags.c')
-rw-r--r-- | clang/test/Driver/sysroot-flags.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Driver/sysroot-flags.c b/clang/test/Driver/sysroot-flags.c index fde9105c10b..461c451e129 100644 --- a/clang/test/Driver/sysroot-flags.c +++ b/clang/test/Driver/sysroot-flags.c @@ -10,7 +10,7 @@ // RUN: --sysroot=/foo/bar -o /dev/null %s 2>&1 | \ // RUN: FileCheck %s -check-prefix=SYSROOT_EQ // SYSROOT_EQ: "-isysroot" "/foo/bar" -// SYSROOT_EQ: "--sysroot" "/foo/bar" +// SYSROOT_EQ: "--sysroot{{" "|=}}/foo/bar" // Check for overriding the header sysroot by providing both --sysroot and // -isysroot. @@ -18,11 +18,11 @@ // RUN: --sysroot=/foo/bar -o /dev/null %s 2>&1 | FileCheck %s \ // RUN: -check-prefix=ISYSROOT_AND_SYSROOT // ISYSROOT_AND_SYSROOT: "-isysroot" "/baz" -// ISYSROOT_AND_SYSROOT: "--sysroot" "/foo/bar" +// ISYSROOT_AND_SYSROOT: "--sysroot{{" "|=}}/foo/bar" // Check that omitting the equals works as well. // RUN: %clang -### -ccc-host-triple x86_64-unknown-linux-gnu \ // RUN: --sysroot /foo/bar -o /dev/null %s 2>&1 | \ // RUN: FileCheck %s -check-prefix=SYSROOT_SEPARATE // SYSROOT_SEPARATE: "-isysroot" "/foo/bar" -// SYSROOT_SEPARATE: "--sysroot" "/foo/bar" +// SYSROOT_SEPARATE: "--sysroot{{" "|=}}/foo/bar" |