Skip to content

build improvements #429

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 6 commits into from
Nov 26, 2018
Merged

build improvements #429

merged 6 commits into from
Nov 26, 2018

Conversation

compnerd
Copy link
Member

This improves the build for Windows, making the installed image usable for building on Windows target from a distributed toolchain. It also cleans up some of the build for static library construction and re-synchronises with XCTest (resource bundling was not supported, but this is mostly for synchrony and not because it is used).

Update the swift support CMake rules from XCTest.  This adds support for
additional features like partial module compilation which improves
incremental builds.  It allows for executable and library builds.
Enhance add_wift_target to support building static libraries.  We would
always generate shared libraries previously.
This is needed to enable Windows to actually link against swiftDispatch
to build code.  When building against a distribution image rather than
the build tree, this comes to light.
We did not distribute generic_win_base.h which prevents the CDispatch
module from being built when building against a distribution image.
We did not disable exceptions when building with cl, do so like we do
with the GCC style driver.
Windows splits the installation into the library directory (for the
import library) and the runtime component (dll) which is installed into
bin.  This makes the Windows build happier.
@compnerd
Copy link
Member Author

CC: @MadCoder @ktopley-apple

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @spevans - this should have all the changes to properly build and install the static and shared versions of libdispatch. Would you mind taking on the changes to build-script-impl to get that resolved?

@ktopley-apple ktopley-apple merged commit 7874a92 into swiftlang:master Nov 26, 2018
@compnerd compnerd deleted the image branch November 26, 2018 17:56
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
build improvements

Signed-off-by: Kim Topley <ktopley@apple.com>
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