Skip to content

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

Merged
edymtt merged 1 commit intoswiftlang:masterfrom
edymtt:set-linker-parameters-the-long-way
Mar 11, 2020
Merged

[build] set linker parameters in a single way#30339
edymtt merged 1 commit intoswiftlang:masterfrom
edymtt:set-linker-parameters-the-long-way

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