Skip to content

[build-script] Add support for specifying that a product is a non-darwin only product. #32255

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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ def get_dependencies(cls):
swift.Swift,
lldb.LLDB,
libdispatch.LibDispatch]

@classmethod
def is_nondarwin_only_build_product(cls):
return True
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def product_source_name(cls):
"""
return "swift-corelibs-libdispatch"

@classmethod
def is_nondarwin_only_build_product(cls):
return True

@classmethod
def get_dependencies(cls):
return [cmark.CMark,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def product_source_name(cls):
"""
return "icu"

@classmethod
def is_nondarwin_only_build_product(cls):
return True

@classmethod
def get_dependencies(cls):
return [cmark.CMark,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ def is_swiftpm_unified_build_product(cls):
"""
return False

@classmethod
def is_nondarwin_only_build_product(cls):
"""Returns true if this target should be skipped in darwin builds when
inferring dependencies.
"""
return False

@classmethod
def get_dependencies(cls):
"""Return a list of products that this product depends upon"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ def get_dependencies(cls):
lldb.LLDB,
libdispatch.LibDispatch,
foundation.Foundation]

@classmethod
def is_nondarwin_only_build_product(cls):
return True