[clang] macCatalyst: add SDKSettings.json as a dependency file if its potentially needed by the compiler (PR #178077)
Ian Anderson via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 14:47:41 PST 2026
================
@@ -24,31 +24,33 @@
// `modules_cdb_input2.cpp`.
//
// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 -mode preprocess-dependency-directives | \
-// RUN: FileCheck --check-prefix=CHECK1 %s
+// RUN: FileCheck --check-prefixes=CHECK1%if system-darwin %{,CHECK-DARWIN1 %} %s
// RUN: clang-scan-deps -compilation-database %t_clangcl.cdb -j 2 -mode preprocess-dependency-directives | \
// RUN: FileCheck --check-prefix=CHECK1 %s
// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 -mode preprocess | \
-// RUN: FileCheck --check-prefix=CHECK1 %s
+// RUN: FileCheck --check-prefixes=CHECK1%if system-darwin %{,CHECK-DARWIN1 %} %s
// RUN: clang-scan-deps -compilation-database %t_clangcl.cdb -j 2 -mode preprocess | \
// RUN: FileCheck --check-prefix=CHECK1 %s
// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 -mode preprocess-dependency-directives | \
-// RUN: FileCheck --check-prefix=CHECK2 %s
+// RUN: FileCheck --check-prefixes=CHECK2%if system-darwin %{,CHECK-DARWIN2 %} %s
// RUN: clang-scan-deps -compilation-database %t_clangcl.cdb -j 2 -mode preprocess-dependency-directives | \
// RUN: FileCheck --check-prefix=CHECK2 %s
// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 -mode preprocess | \
-// RUN: FileCheck --check-prefix=CHECK2 %s
+// RUN: FileCheck --check-prefixes=CHECK2%if system-darwin %{,CHECK-DARWIN2 %} %s
// RUN: clang-scan-deps -compilation-database %t_clangcl.cdb -j 2 -mode preprocess | \
// RUN: FileCheck --check-prefix=CHECK2 %s
#include "header.h"
// CHECK1: modules_cdb_input2.o:
+// CHECK-DARWIN1-NEXT: SDKSettings.json
// CHECK1-NEXT: modules_cdb_input2.cpp
// CHECK1-NEXT: Inputs{{/|\\}}module.modulemap
// CHECK1-NEXT: Inputs{{/|\\}}header2.h
// CHECK1: Inputs{{/|\\}}header.h
// CHECK2: {{(modules_cdb_input)|(a)|(b)}}.o:
+// CHECK-DARWIN2-NEXT: SDKSettings.json
----------------
ian-twilightcoder wrote:
https://github.com/llvm/llvm-project/pull/178313
https://github.com/llvm/llvm-project/pull/178077
More information about the cfe-commits
mailing list