Skip to content

[windows] add PDB files to install target - #561

Open
charles-zablit wants to merge 1 commit into
swiftlang:mainfrom
charles-zablit:cz/windows/symbolfiles
Open

[windows] add PDB files to install target#561
charles-zablit wants to merge 1 commit into
swiftlang:mainfrom
charles-zablit:cz/windows/symbolfiles

Conversation

@charles-zablit

Copy link
Copy Markdown
Contributor

This is part of swiftlang/swift#88869.

@jakepetroules

Copy link
Copy Markdown
Contributor

Does @compnerd's comment swiftlang/swift-toolchain-sqlite#41 (review) apply here too?

@charles-zablit

Copy link
Copy Markdown
Contributor Author

Does @compnerd's comment swiftlang/swift-toolchain-sqlite#41 (review) apply here too?

It does but we can't apply it here because CMake does not support TARGET_PDB_FILE for Swift projects.

@compnerd

Copy link
Copy Markdown
Member

I'm worried that this is just adding more debt - we should fix CMake first - there is no guarantee that the PDB path is what is computed here.

@charles-zablit
charles-zablit force-pushed the cz/windows/symbolfiles branch from f3b233a to 6ec1eda Compare August 11, 2026 15:15
@charles-zablit
charles-zablit marked this pull request as ready for review August 11, 2026 15:15

@compnerd compnerd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where does CMAKE_Swift_LINKER_SUPPORTS_PDB come from? That is in the CMake namespace, but I'm not aware of this variable.

@compnerd compnerd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah its internal, but its always set to true, so this is unnecessary.

Comment thread Sources/TSCBasic/CMakeLists.txt
Comment thread Sources/TSCUtility/CMakeLists.txt
@charles-zablit
charles-zablit force-pushed the cz/windows/symbolfiles branch from 6ec1eda to de50205 Compare August 12, 2026 11:55
@charles-zablit

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@charles-zablit
charles-zablit force-pushed the cz/windows/symbolfiles branch from de50205 to 9898cca Compare August 14, 2026 15:11
@charles-zablit

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@charles-zablit

Copy link
Copy Markdown
Contributor Author

We need the CMAKE_Swift_LINKER_SUPPORTS_PDB check otherwise we get CMake errors on Linux and macOS.

@compnerd

Copy link
Copy Markdown
Member

What's the error? The optional is meant to avoid the errors.

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