-
Notifications
You must be signed in to change notification settings - Fork 3
Simplify build system for WASI #267
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
Conversation
81a8206
to
08c0561
Compare
I checked this branch works well, so it's ready for review: https://github.com/swiftwasm/swift/pull/2736/checks?check_run_id=1900758798 |
@@ -163,6 +163,18 @@ set_target_properties(Foundation PROPERTIES | |||
Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift | |||
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_BINARY_DIR}/swift) | |||
|
|||
if(NOT BUILD_SHARED_LIBS) | |||
add_dependencies(Foundation CoreFoundation uuid) | |||
# TODO(katei): Comment out after swift-frontend implementation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clarify what implementation are you referring to here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added 👍
08c0561
to
ed9c432
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Remove
if(NOT CMAKE_SYSTEM_NAME STREQUAL WASI)
as much as possible to be accepted for upstream. Use feature flag based building.Don't fetch libxml2 from the source and use CMake package system instead.
LIBXML2_INCLUDE_DIR
andLIBXML2_LIBRARY
when configuring.Fix autolink issue for static library with @_implementationOnly.
-licui18n
because swift doesn't have a way to add public linking dependencies in module file. likelink
statement in modulemap.This PR depends on swiftwasm/swift#2733