Skip to content

[Build System: CMake] make add_swift_library a wrapper to add_llvm_library #19514

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 8 commits into from
Nov 2, 2018

Conversation

compnerd
Copy link
Member

…brary`

Split up the add_swift_library by extracting the tools host handling aspect of
it. This has a much more limited option set. Reducing the options further
would allow us to eliminate this and replace it with a wrapper around
add_llvm_library. Leave the bulk of the logic in place in
add_swift_target_library which can now be simplified on its own.

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

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

CC: @Rostepher @gottesmm

Let's get the party started!

@compnerd compnerd force-pushed the breakup branch 5 times, most recently from 9221a8a to 43c1598 Compare September 26, 2018 04:29
@compnerd
Copy link
Member Author

@gottesmm @llvm-beanz @Rostepher ... okay, this is about as thin of a wrapper over add_llvm_library as I can make due to the new use of gyb in the compiler itself. Not sure if this is worth it or not, but the first commit definitely is IMO.

@Rostepher
Copy link
Contributor

Awesome work so far! I'll give this a closer look in the morning.

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 367c6abafa77458ceeae6c04bec900d5e7d527a4

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 367c6abafa77458ceeae6c04bec900d5e7d527a4

@compnerd
Copy link
Member Author

@swift-ci please test linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 4179f1572e79e3f38b99ae3ccd02005310f2bff9

@Rostepher Rostepher changed the title build: extract add_swift_library and rename to `add_swift_target_li… [Build System: CMake] extract add_swift_library and rename to `add_swift_target_li… Sep 27, 2018
@compnerd
Copy link
Member Author

compnerd commented Oct 1, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2018

Build failed
Swift Test OS X Platform
Git Sha - 4179f1572e79e3f38b99ae3ccd02005310f2bff9

@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2018

Build failed
Swift Test Linux Platform
Git Sha - 4179f1572e79e3f38b99ae3ccd02005310f2bff9

@compnerd
Copy link
Member Author

compnerd commented Oct 1, 2018

@swift-ci please test Linux platform

@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2018

Build failed
Swift Test Linux Platform
Git Sha - 8aed746309542f806cfcaf65392eb9d91e7a14c5

@compnerd
Copy link
Member Author

compnerd commented Oct 4, 2018

@swift-ci please test Linux platform

@swift-ci
Copy link
Contributor

swift-ci commented Oct 5, 2018

Build failed
Swift Test Linux Platform
Git Sha - 8aed746309542f806cfcaf65392eb9d91e7a14c5

@compnerd
Copy link
Member Author

compnerd commented Oct 5, 2018

19:36:01 failed to demangle witness for associated type 'Iterator' in conformance 'Swift.Array<Commands.ToolName.Type>: Sequence' from mangled name 's16IndexingIteratorVySayxGG'

The failure seems to be a demangling issue? Not sure I understand how this is breaking (and only on Linux).

@compnerd
Copy link
Member Author

compnerd commented Oct 5, 2018

CC: @eeckstein
Perhaps Erik has some idea?

@eeckstein
Copy link
Contributor

Maybe there is some missing build dependency and something didn't get rebuilt.
You can try with a clean build

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 2128fcb25278d8fbb7050ec179d1d1d1054bad74

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 8aed746309542f806cfcaf65392eb9d91e7a14c5

@compnerd
Copy link
Member Author

Bleh, it isn't the LINK_COMPONENTS. Ignore the topmost commit, I'm going to drop that. I still need to figure out how to make this work with the unified library only builds.

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 9cc15cf4696495ea838a6cee7db78a6e63c5a84f

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 9cc15cf4696495ea838a6cee7db78a6e63c5a84f

@compnerd
Copy link
Member Author

The failure was due to a rebase failure on my part, sorry.

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 0fdce4c358ad4b3eaa9a3db3c0e4ed9538075f38

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 0fdce4c358ad4b3eaa9a3db3c0e4ed9538075f38

@compnerd
Copy link
Member Author

@swift-ci please test macOS platform

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 2eb47049c1eb2b9f37927d8d2b0b575b953c7d74

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 2eb47049c1eb2b9f37927d8d2b0b575b953c7d74

@compnerd compnerd changed the title [Build System: CMake] extract add_swift_library and rename to `add_swift_target_li… [Build System: CMake] make add_swift_library a wrapper to add_llvm_library Oct 31, 2018
@compnerd
Copy link
Member Author

compnerd commented Nov 1, 2018

@swift-ci please test Linux platform

@compnerd compnerd merged commit 4277292 into swiftlang:master Nov 2, 2018
@compnerd compnerd deleted the breakup branch November 2, 2018 16:56
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.

5 participants