Skip to content

Conversation

@compnerd
Copy link
Member

@compnerd compnerd commented Dec 28, 2022

Convert libllbuild into static and avoid exporting the library for use in other projects. The expected clients are only reliant on llbuildSwift. This overall saves some space (~20K). Additionally, it will simplify the redistribution in the toolchain by reducing the number of shared libraries while saving space.

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd compnerd changed the title libllbuild: correct the macro usage for DLL builds libllbuild: correct the macro usage for DLL builds, make static Dec 30, 2022
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

CC: @etcwilde @DougGregor

compnerd added a commit to compnerd/swift-installer-scripts that referenced this pull request Dec 30, 2022
This has been made static with swiftlang/swift-llbuild#852.  Adjust the
packaging rules accordingly.
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please smoke test

1 similar comment
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please smoke test

@stevapple
Copy link
Contributor

Ping here as merging #859 alone is breaking the Windows build

@compnerd
Copy link
Member Author

compnerd commented Feb 6, 2023

@swift-ci please smoke test

@shahmishal
Copy link
Member

@swift-ci test Windows

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Windows

@compnerd
Copy link
Member Author

@swift-ci please smoke test

1 similar comment
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd compnerd changed the title libllbuild: correct the macro usage for DLL builds, make static libllbuild: make the library static and internalise it Feb 16, 2023
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please smoke test

Rather than emitting `libllbuild` as a dynamic library, expose it as a
static library.  This is used by a single user (`llbuildSwift`), and
thus allows for simplification of the distribution.  We no longer export
libllbuild as the clients are using llbuildSwift.  Because the module is
not imported as `@_implementationOnly`, we need to expose the include
path for `libllbuild` to clients of `llbuildSwift`.
@compnerd
Copy link
Member Author

@swift-ci please smoke test

compnerd added a commit to compnerd/swift-driver that referenced this pull request Feb 19, 2023
The libllbuild library has been converted into a static product and
interalised into libllbuildSwift.  This avoids the distribution
issues here.  Remove the library from the install set.
@compnerd compnerd merged commit 674f81a into swiftlang:main Feb 20, 2023
compnerd added a commit to swiftlang/swift-driver that referenced this pull request Feb 20, 2023
@compnerd compnerd deleted the identity branch February 20, 2023 18:10
compnerd added a commit to swiftlang/swift-installer-scripts that referenced this pull request Feb 20, 2023
This has been made static with swiftlang/swift-llbuild#852.  Adjust the
packaging rules accordingly.
finagolfin added a commit to finagolfin/swift-llbuild that referenced this pull request Mar 4, 2023
… statically linked

Now that libllbuildSwift is statically linked against libllbuild with swiftlang#852,
remove the runpath and don't install it. Also, the Android build started
failing, so set the appropriate flag for it to work again.
johari pushed a commit that referenced this pull request Mar 15, 2023
… statically linked

Now that libllbuildSwift is statically linked against libllbuild with #852,
remove the runpath and don't install it. Also, the Android build started
failing, so set the appropriate flag for it to work again.
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