From 6bd084a3e27da722f54d26dd6cd3d599d4cfbfdb Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Tue, 30 Sep 2025 16:26:48 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=92=20[clang]=20Add=20features.json=20?= =?UTF-8?q?entry=20for=20"print-headers-direct-per-file"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swift Build needs to know when "-header-include-filtering=direct-per-file" is supported by Clang. We already added a fake feature flag in Swift Build based on a check of the Apple Clang version number. Adding a real entry in features.json will let us replace that hack. rdar://161691058 (cherry picked from commit ca4827f8d403d3dfad86bacd5170ee962437d9a9) --- clang/tools/driver/features.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/tools/driver/features.json b/clang/tools/driver/features.json index 4e3f20c6627ea..4494a527095e0 100644 --- a/clang/tools/driver/features.json +++ b/clang/tools/driver/features.json @@ -40,6 +40,9 @@ }, { "name": "extract-api-supports-cpp" + }, + { + "name": "print-headers-direct-per-file" } ] }