Don't assume the clang binary name contains the string "clang".

Also ensure the -cc1 argument is actually part of the clang -cc1 command
line rather than some unrelated command line.
This commit is contained in:
Richard Smith 2020-11-24 18:51:08 -08:00
parent 10ddb927c1
commit e0f4dea0d0
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
// RUN: %clang -### -target powerpc-unknown-aix -S -maltivec -mabi=vec-extabi %s 2>&1 | \
// RUN: FileCheck %s
// CHECK: {{.*}}clang{{.*}}" "-cc1"
// CHECK: "-mabi=vec-extabi"
// CHECK: "-cc1"
// CHECK-SAME: "-mabi=vec-extabi"
// RUN: %clang -### -target powerpc-unknown-aix -S -maltivec -mabi=vec-default %s 2>&1 | \
// RUN: FileCheck %s --check-prefix=ERROR