Skip to content

build: shuffle library order #31459

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
May 1, 2020
Merged

Conversation

compnerd
Copy link
Member

ELF is sensitive to library ordering. Ensure that swiftClangImporter
comes after swiftAST as swiftAST has grown a dependency on
swiftClangImporter. Adding this properly using
target_link_libraries will cause a cyclic dependency so add this
reordering here.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

ELF is sensitive to library ordering.  Ensure that `swiftClangImporter`
comes after `swiftAST` as `swiftAST` has grown a dependency on
`swiftClangImporter`.  Adding this properly using
`target_link_libraries` will cause a cyclic dependency so add this
reordering here.
@saeta
Copy link
Contributor

saeta commented May 1, 2020

Can confirm that I used to get a linker error, but with this patch applied tests now appear to build properly. Thank you @compnerd

@compnerd
Copy link
Member Author

compnerd commented May 1, 2020

My pleasure @saeta!

@compnerd
Copy link
Member Author

compnerd commented May 1, 2020

@swift-ci please test

@compnerd compnerd merged commit 5cdbc5b into swiftlang:master May 1, 2020
@compnerd compnerd deleted the ast-importer branch May 1, 2020 15:23
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