[unittests/Tooling/DependencyScannerTest] Add a target triple for `ScanDepsWithFS...
authorArgyrios Kyrtzidis <kyrtzidis@apple.com>
Mon, 18 Jul 2022 23:53:16 +0000 (16:53 -0700)
committerArgyrios Kyrtzidis <kyrtzidis@apple.com>
Mon, 18 Jul 2022 23:55:07 +0000 (16:55 -0700)
This should fix the `clang-ppc64-aix` builder.

clang/unittests/Tooling/DependencyScannerTest.cpp

index 0e24980..abcc2c7 100644 (file)
@@ -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";