Skip to content

[CMake] Add DEPENDS to dependencies for compiling sources. #5821

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
Nov 18, 2016

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Nov 16, 2016

Compiling Glibc.swift depends on lib/swift/${platform}/${arch}/glibc.modulemap file.
Propagate DEPENDS argument passed to add_swift_library() to handle_swift_sources().

Hopefully, fixes SR-3219

@jrose-apple
Copy link
Contributor

Huh. Is this all it was? How did this ever work?

cc @erg

@e78l
Copy link

e78l commented Nov 17, 2016

A clean build finished successfully with this fix in my environment. Maybe there's some non-determinism? Thanks @rintaro!

@erg
Copy link
Contributor

erg commented Nov 18, 2016

@swift-ci Please smoke test

@erg erg merged commit dcb9b39 into swiftlang:master Nov 18, 2016
@jrose-apple
Copy link
Contributor

For the record: this "ever worked" because the link step depended on the module map but not the compile step. So it was entirely dependent on build order.

@rintaro rintaro deleted the cmake-depends-handle_swift_sources branch November 24, 2016 06:40
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.

4 participants