Skip to content

[ABIChecker] Use -Isystem and -Fsystem for swift-api-digester #82283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ian-twilightcoder
Copy link
Contributor

Use the Swift -Fsystem flag for swift-api-digester instead of the clang -iframework flag. Add support for -Isystem for parity.

rdar://152747420

Copy link
Contributor

@cachemeifyoucan cachemeifyoucan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code change LGTM. You probably want to get the swift driver change in before compiler dropping the flag, or support both flags for a while but change swift-driver to prefer -Isystem and -Fsystem.

@ian-twilightcoder
Copy link
Contributor Author

Code change LGTM. You probably want to get the swift driver change in before compiler dropping the flag, or support both flags for a while but change swift-driver to prefer -Isystem and -Fsystem.

Is it good enough to land the swift-driver change at the same time, or should we support both for a little while?

@cachemeifyoucan
Copy link
Contributor

Is it good enough to land the swift-driver change at the same time, or should we support both for a little while?

We need to support mismatched version for a while. SwiftDriver can be ahead or behind. The compatibility can be done in compiler or driver or both, just need to support mismatch. I don't know when APIDigester is used so maybe we can have a even smaller range of mismatched version.

@ian-twilightcoder ian-twilightcoder force-pushed the swift-api-digester-args branch from 333c6fd to fb9f842 Compare June 17, 2025 19:24
@ian-twilightcoder
Copy link
Contributor Author

Is it good enough to land the swift-driver change at the same time, or should we support both for a little while?

We need to support mismatched version for a while. SwiftDriver can be ahead or behind. The compatibility can be done in compiler or driver or both, just need to support mismatch. I don't know when APIDigester is used so maybe we can have a even smaller range of mismatched version.

Alright, putting -iframework back.

Copy link
Contributor

@cachemeifyoucan cachemeifyoucan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than one file change. Otherwise LGTM.

Use the Swift -Fsystem flag for swift-api-digester instead of the clang -iframework flag. Add support for -Isystem for parity.

rdar://152747420
@ian-twilightcoder ian-twilightcoder force-pushed the swift-api-digester-args branch from cc2b6f6 to cb954b9 Compare June 19, 2025 04:22
@ian-twilightcoder
Copy link
Contributor Author

@swift-ci smoke test

@ian-twilightcoder ian-twilightcoder merged commit 58cd10c into swiftlang:main Jun 20, 2025
3 checks passed
@ian-twilightcoder ian-twilightcoder deleted the swift-api-digester-args branch June 21, 2025 00:05
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.

3 participants