Skip testing the crtbegin.o, and resume using a single variable for the

prefixes. It seems only crtbegin.o uses the strange formatting.

llvm-svn: 151094
This commit is contained in:
Chandler Carruth 2012-02-21 22:21:50 +00:00
parent 9d0da18597
commit 85061b51d2
1 changed files with 6 additions and 6 deletions

View File

@ -14,10 +14,10 @@
// CHECK: "[[TOOLCHAIN]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/backward" // CHECK: "[[TOOLCHAIN]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/backward"
// CHECK: "-internal-isystem" "/usr/local/include" // CHECK: "-internal-isystem" "/usr/local/include"
// //
// Test for linker toolchain detection. Note that we use a separate variable // Test for linker toolchain detection. Note that only the '-L' flags will use
// because the '/'s may be different in the linker invocation than in the // the same precise formatting of the path as the '-internal-system' flags
// header search. // above, so we just blanket wildcard match the 'crtbegin.o'.
// CHECK: "{{[^"]*}}ld{{(.exe)?}}" // CHECK: "{{[^"]*}}ld{{(.exe)?}}"
// CHECK: "[[TOOLCHAIN2:[^"]*]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/crtbegin.o" // CHECK: "{{[^"]*}}/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/crtbegin.o"
// CHECK: "-L[[TOOLCHAIN2]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5" // CHECK: "-L[[TOOLCHAIN]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5"
// CHECK: "-L[[TOOLCHAIN2]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../.." // CHECK: "-L[[TOOLCHAIN]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../.."