[clang] d1b58ca - [unittests/Tooling/DependencyScannerTest] Add a target triple for `ScanDepsWithFS` test

Argyrios Kyrtzidis via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 18 16:55:13 PDT 2022


Author: Argyrios Kyrtzidis
Date: 2022-07-18T16:55:07-07:00
New Revision: d1b58cada61aa8bc44d8e8ef9c23ed12ef7b549b

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

LOG: [unittests/Tooling/DependencyScannerTest] Add a target triple for `ScanDepsWithFS` test

This should fix the `clang-ppc64-aix` builder.

Added: 
    

Modified: 
    clang/unittests/Tooling/DependencyScannerTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Tooling/DependencyScannerTest.cpp b/clang/unittests/Tooling/DependencyScannerTest.cpp
index 0e2498097e41b..abcc2c787b0d0 100644
--- a/clang/unittests/Tooling/DependencyScannerTest.cpp
+++ b/clang/unittests/Tooling/DependencyScannerTest.cpp
@@ -207,7 +207,11 @@ TEST(DependencyScanner, ScanDepsReuseFilemanagerHasInclude) {
 }
 
 TEST(DependencyScanner, ScanDepsWithFS) {
-  std::vector<std::string> CommandLine = {"clang", "-c", "test.cpp",
+  std::vector<std::string> CommandLine = {"clang",
+                                          "-target",
+                                          "x86_64-apple-macosx10.7",
+                                          "-c",
+                                          "test.cpp",
                                           "-o"
                                           "test.cpp.o"};
   StringRef CWD = "/root";


        


More information about the cfe-commits mailing list