Skip to content

[build] set linker parameters in a single way #30339

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
Mar 11, 2020

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Mar 10, 2020

After noticing that also in CMake 3.16 the LINKER: prefix is not
expanded correctly when used in target_link_options, prefer to set the
linker parameters in a more verbose way and leave a comment behind on
when this behavior was observed in case we want to change the
implementation later.

Follow up to #29636.
Addresses rdar://problem/59732421

After noticing that also in CMake 3.16 the LINKER: prefix is not
expanded correctly when used in `target_link_options`, prefer to set the
linker parameters in a more verbose way and leave a comment behind on
when this behavior was observed in case we want to change the
implementation later.

Follow up to swiftlang#29636.
Addresses rdar://problem/59732421
@edymtt
Copy link
Contributor Author

edymtt commented Mar 10, 2020

@swift-ci Please smoke test

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

Ugh, seems unfortunate, however, this isn't really that terrible.

@edymtt
Copy link
Contributor Author

edymtt commented Mar 11, 2020

@swift-ci please test Windows platform

@edymtt
Copy link
Contributor Author

edymtt commented Mar 11, 2020

The failure is Windows PR testing is already present in master and not related to this change.

@edymtt edymtt merged commit b3e8661 into swiftlang:master Mar 11, 2020
@edymtt edymtt deleted the set-linker-parameters-the-long-way branch March 11, 2020 15:00
edymtt added a commit that referenced this pull request Mar 24, 2020
Match the same fix as #30339 for `AddSwiftStdlib.cmake`.

Addresses rdar://problem/60791444
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