Skip to content

Separate build directory for libdispatch_static #19711

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

Closed
wants to merge 1 commit into from

Conversation

kevints
Copy link
Contributor

@kevints kevints commented Oct 4, 2018

This change adds a separate build directory for libdispatch_static, which mirrors the configuration of libdispatch with BUILD_SHARED_LIBS=NO. It also creates a separate build directory sourcekit-libdispatch which is used by the swift build.

Resolves SR-8854.

@kevints
Copy link
Contributor Author

kevints commented Oct 4, 2018

cc @compnerd @gottesmm

@@ -2214,7 +2218,7 @@ for host in "${ALL_HOSTS[@]}"; do
-DSWIFT_PATH_TO_CMARK_SOURCE:PATH="${CMARK_SOURCE_DIR}"
-DSWIFT_PATH_TO_CMARK_BUILD:PATH="$(build_directory ${host} cmark)"
-DSWIFT_PATH_TO_LIBDISPATCH_SOURCE:PATH="${LIBDISPATCH_SOURCE_DIR}"
-DSWIFT_PATH_TO_LIBDISPATCH_BUILD:PATH="$(build_directory ${host} libdispatch)"
-DSWIFT_PATH_TO_LIBDISPATCH_BUILD:PATH="$(build_directory ${host} sourcekit-libdispatch)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be needed once #19674 is merged. We can just drop the entire option.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

@alblue
Copy link
Contributor

alblue commented Oct 5, 2018

@swift-ci please smoke test

@compnerd
Copy link
Member

compnerd commented Oct 5, 2018

@kevints - did you forget to upload the updated diff?

@kevints
Copy link
Contributor Author

kevints commented Oct 5, 2018

@compnerd I was attempting to rebase the updated diff and ran into https://bugs.swift.org/browse/SR-8925 instead so I haven't been able to build it yet.

@kevints kevints force-pushed the libdispatch_static branch from 244839c to c105da4 Compare October 5, 2018 17:26
@kevints
Copy link
Contributor Author

kevints commented Oct 5, 2018

@swift-ci please test

@kevints kevints force-pushed the libdispatch_static branch from c105da4 to eb40500 Compare October 5, 2018 17:32
-DBUILD_SHARED_LIBS=NO
-DSWIFT_RUNTIME_LIBDIR:PATH="${SWIFT_BUILD_PATH}/lib/swift_static/${SWIFT_HOST_VARIANT}/${SWIFT_HOST_VARIANT_ARCH}"
-DINSTALL_TARGET_DIR:PATH=lib/swift_static/${target}
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both SWIFT_RUNTIME_LIBDIR and INSTALL_TARGET_DIR should no longer be needed with #19834.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks [~compnerd], I'll take a look at this and rebase next week (unless this is blocking your work in which case feel free to take it over).

@spevans
Copy link
Contributor

spevans commented Nov 28, 2018

@kevints Are you still working on this one or are you happy for me to take it over?

@kevints
Copy link
Contributor Author

kevints commented Nov 28, 2018

@spevans I’m happy for you to take it over.

@spevans
Copy link
Contributor

spevans commented Nov 28, 2018

Looks like this work has been done in #20793, @compnerd is this PR still needed?

@compnerd
Copy link
Member

@kevints - this is way out of date, and the work is already done, no reason to keep it open.

@kevints kevints closed this Feb 15, 2019
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