]> granicus.if.org Git - clang/commitdiff
Make this test resilient to whether or not the Linux toolchain renders the
authorChandler Carruth <chandlerc@gmail.com>
Wed, 8 Dec 2010 19:11:45 +0000 (19:11 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 8 Dec 2010 19:11:45 +0000 (19:11 +0000)
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

test/Driver/sysroot-flags.c

index fde9105c10b7456f13f7dc245b33fb635d17e9da..461c451e12937bc4dbd23e8367237c7928a0fcdc 100644 (file)
@@ -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.
 // 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"