Skip to content

[clang][deps] Only disable app extension without PCHs (#207049) 🍒#13292

Open
jansvoboda11 wants to merge 1 commit into
stable/20260609from
jan_svoboda/stable-20260609-app-ext-pch
Open

[clang][deps] Only disable app extension without PCHs (#207049) 🍒#13292
jansvoboda11 wants to merge 1 commit into
stable/20260609from
jan_svoboda/stable-20260609-app-ext-pch

Conversation

@jansvoboda11

Copy link
Copy Markdown

PR llvm#200041 disabled application extension during scanning to increase module cache reuse. To keep the build semantics intact, the setting was preserved for the compile steps. When scanning with an explicitly-built PCH, this triggers a mismatch error in ASTReader:

error: Objective-C App Extension was enabled in precompiled file 'X.pch' but is currently disabled

This PR fixes this by only performing the optimization for non-PCH compiles, adds a test, and a FIXME outlining how this optimization could be applied even for compiles with PCHs.

rdar://180978125
(cherry picked from commit 066f7cb)

PR llvm#200041 disabled application extension during scanning to increase
module cache reuse. To keep the build semantics intact, the setting was
preserved for the compile steps. When scanning with an explicitly-built
PCH, this triggers a mismatch error in `ASTReader`:

```
error: Objective-C App Extension was enabled in precompiled file 'X.pch' but is currently disabled
```

This PR fixes this by only performing the optimization for non-PCH
compiles, adds a test, and a FIXME outlining how this optimization could
be applied even for compiles with PCHs.

rdar://180978125
(cherry picked from commit 066f7cb)
@jansvoboda11 jansvoboda11 requested a review from benlangmuir July 1, 2026 21:52
@jansvoboda11

Copy link
Copy Markdown
Author

@swift-ci please test

@jansvoboda11

Copy link
Copy Markdown
Author

@swift-ci please test llvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant