[clang] e0f4dea - Don't assume the clang binary name contains the string "clang".

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 24 18:52:59 PST 2020


Author: Richard Smith
Date: 2020-11-24T18:52:46-08:00
New Revision: e0f4dea0d0f1766eef1591d77b5673ce264e8fff

URL: https://github.com/llvm/llvm-project/commit/e0f4dea0d0f1766eef1591d77b5673ce264e8fff
DIFF: https://github.com/llvm/llvm-project/commit/e0f4dea0d0f1766eef1591d77b5673ce264e8fff.diff

LOG: 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.

Added: 
    

Modified: 
    clang/test/Driver/aix-vec-extabi.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/aix-vec-extabi.c b/clang/test/Driver/aix-vec-extabi.c
index d5e4548c87fa..ccc3b0732e4b 100644
--- a/clang/test/Driver/aix-vec-extabi.c
+++ b/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


        


More information about the cfe-commits mailing list