Skip to content

[cmake] APIDigester, IDE: Specify Clang link dependencies #83645

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
merged 1 commit into from
Aug 12, 2025

Conversation

AnthonyLatsis
Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis commented Aug 11, 2025

This way, CMake will propagate the interface compile definitions of the Clang dependencies, which is important on Windows because Clang visibility macro expansions, controlled by compile definitions, must match between the Swift and Clang library.

See https://github.com/llvm/llvm-project/pull/108276/files#diff-4dd645a8b76bb3886a505258a8c2e598aeddea770e7b0a2b51689124a5ea6e9a.

@AnthonyLatsis AnthonyLatsis requested a review from bnbarham August 11, 2025 19:32
@AnthonyLatsis AnthonyLatsis force-pushed the jepa-rebranch branch 2 times, most recently from 9b3a088 to bd00138 Compare August 11, 2025 20:28
@AnthonyLatsis
Copy link
Collaborator Author

swiftlang/llvm-project#11127

@swift-ci please test Windows

@AnthonyLatsis
Copy link
Collaborator Author

swiftlang/llvm-project#11127

@swift-ci please test Windows

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test Windows

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test Windows

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test Windows

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test Windows

This way, CMake will propagate the interface compile definitions of the
Clang dependencies, which is important on Windows because Clang
visibility macro expansions, controlled by compile definitions, must
match between the Swift and Clang library.

See https://github.com/llvm/llvm-project/pull/108276/files#diff-4dd645a8b76bb3886a505258a8c2e598aeddea770e7b0a2b51689124a5ea6e9a.
@AnthonyLatsis AnthonyLatsis changed the base branch from rebranch to main August 12, 2025 17:14
@AnthonyLatsis AnthonyLatsis changed the title [cmake] Build Swift host libraries with -DCLANG_BUILD_STATIC on Windows [cmake] APIDigester, IDE: Specify Clang link dependencies Aug 12, 2025
@AnthonyLatsis AnthonyLatsis requested a review from compnerd August 12, 2025 17:17
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test Windows

@AnthonyLatsis AnthonyLatsis merged commit ec38c6e into main Aug 12, 2025
3 checks passed
@AnthonyLatsis AnthonyLatsis deleted the jepa-rebranch branch August 12, 2025 23:27
@AnthonyLatsis AnthonyLatsis restored the jepa-rebranch branch August 12, 2025 23:33
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.

2 participants