Author: Jake Egan
Date: 2022-01-28T11:40:16-05:00
New Revision: 6f4f745668eccf460ec1e0d34df4692f8e883b07

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

LOG: [clang][deps] Adapt test to be compatible when the assembler is called by 
default

When `-fno-integrated-as` is in effect (the default on AIX) the cc1 job 
produces a `.s` file instead. This patch adapts the test to accept `.s` or `.o` 
files.

Reviewed By: jansvoboda11

Differential Revision: https://reviews.llvm.org/D118152

Added: 
    

Modified: 
    clang/test/ClangScanDeps/headerwithdirname.cpp
    clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/ClangScanDeps/headerwithdirname.cpp 
b/clang/test/ClangScanDeps/headerwithdirname.cpp
index b6c7f796e90e0..02b03926c553a 100644
--- a/clang/test/ClangScanDeps/headerwithdirname.cpp
+++ b/clang/test/ClangScanDeps/headerwithdirname.cpp
@@ -13,7 +13,7 @@
 
 #include <foodir>
 
-// CHECK: headerwithdirname_input.o
+// CHECK: headerwithdirname_input{{\.o|.*\.s}}
 // CHECK-NEXT: headerwithdirname_input.cpp
 // CHECK-NEXT: Inputs{{/|\\}}foodir
 

diff  --git a/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp 
b/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp
index 1f9133dc74e8f..f67b12787bd77 100644
--- a/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp
+++ b/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp
@@ -17,7 +17,7 @@
 #include <foodir>
 #include "foodir/foodirheader.h"
 
-// CHECK: headerwithdirname_input.o
+// CHECK: headerwithdirname_input{{\.o|.*\.s}}
 // CHECK-NEXT: headerwithdirname_input.cpp
 // CHECK-NEXT: Inputs{{/|\\}}foodir
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to