[clang] 3ac8d32 - [clang][deps] Fix test failing on AIX

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 3 10:22:45 PST 2023


Author: Jan Svoboda
Date: 2023-03-03T10:22:39-08:00
New Revision: 3ac8d322100bc72aaacb67f13eb21d9b644f9930

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

LOG: [clang][deps] Fix test failing on AIX

Introduced in 86405450, caused by AIX defaulting to `-fno-integrated-as`.

Added: 
    

Modified: 
    clang/test/ClangScanDeps/modules-full-output-tu-order.c

Removed: 
    


################################################################################
diff  --git a/clang/test/ClangScanDeps/modules-full-output-tu-order.c b/clang/test/ClangScanDeps/modules-full-output-tu-order.c
index dd5002809daa9..eb96d2e99c622 100644
--- a/clang/test/ClangScanDeps/modules-full-output-tu-order.c
+++ b/clang/test/ClangScanDeps/modules-full-output-tu-order.c
@@ -8,12 +8,12 @@
   {
     "directory": "DIR",
     "file": "DIR/tu.c",
-    "command": "clang -fmodules -fmodules-cache-path=DIR/cache -c DIR/tu.c -o DIR/tu1.o"
+    "command": "clang -fmodules -fmodules-cache-path=DIR/cache -c DIR/tu.c -DONE -o DIR/tu1.o"
   },
   {
     "directory": "DIR",
     "file": "DIR/tu.c",
-    "command": "clang -fmodules -fmodules-cache-path=DIR/cache -c DIR/tu.c -o DIR/tu2.o"
+    "command": "clang -fmodules -fmodules-cache-path=DIR/cache -c DIR/tu.c -DTWO -o DIR/tu2.o"
   }
 ]
 
@@ -32,8 +32,8 @@
 // CHECK-NEXT:           "clang-context-hash": "{{.*}}",
 // CHECK-NEXT:           "clang-module-deps": [],
 // CHECK-NEXT:           "command-line": [
-// CHECK:                  "-o",
-// CHECK-NEXT:             "[[PREFIX]]/tu1.o",
+// CHECK:                  "-D"
+// CHECK-NEXT:             "ONE"
 // CHECK:                ],
 // CHECK-NEXT:           "executable": "clang",
 // CHECK-NEXT:           "file-deps": [
@@ -49,8 +49,8 @@
 // CHECK-NEXT:           "clang-context-hash": "{{.*}}",
 // CHECK-NEXT:           "clang-module-deps": [],
 // CHECK-NEXT:           "command-line": [
-// CHECK:                  "-o",
-// CHECK-NEXT:             "[[PREFIX]]/tu2.o",
+// CHECK:                  "-D"
+// CHECK-NEXT:             "TWO"
 // CHECK:                ],
 // CHECK-NEXT:           "executable": "clang",
 // CHECK-NEXT:           "file-deps": [


        


More information about the cfe-commits mailing list