Skip to content

Commit

Permalink
Don't assume the clang binary name contains the string "clang".
Browse files Browse the repository at this point in the history
Also ensure the -cc1 argument is actually part of the clang -cc1 command
line rather than some unrelated command line.
  • Loading branch information
zygoloid committed Nov 25, 2020
1 parent 10ddb92 commit e0f4dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/test/Driver/aix-vec-extabi.c
@@ -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
Expand Down

0 comments on commit e0f4dea

Please sign in to comment.