Skip to content
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

[Build] Adjust computeLLBuildTargetName to attempt host destinati… #7619

Merged
merged 1 commit into from
May 31, 2024

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 31, 2024

…on for test products

Motivation:

Just like macros and plugins, tests products can also be built for the host depending on their test target(s) destinations (which are inferred based on dependencies). In order to properly support --test-product option we need to fallback to host lookup for test products just like we do for macros and plugins.

Modifications:

  • Added a fallback lookup to computeLLBuildTargetName

Result:

--test-product now supports both host and target destination products.

@xedin
Copy link
Contributor Author

xedin commented May 31, 2024

@swift-ci please test

…on for test products

Just like macros and plugins, tests products can also be built for
the host depending on their test target(s) destinations (which are
inferred based on dependencies). In order to properly support
`--test-product` option we need to fallback to `host` lookup for
test products just like we do for macros and plugins.
@xedin xedin force-pushed the fix-test-product-option-support branch from 621a8dc to f5a5424 Compare May 31, 2024 18:01
@xedin
Copy link
Contributor Author

xedin commented May 31, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 31, 2024

@swift-ci please test Windows platform

@xedin xedin merged commit 5749d86 into swiftlang:main May 31, 2024
5 checks passed
xedin added a commit that referenced this pull request Jun 7, 2024
#7619)

…on for test products

### Motivation:

Just like macros and plugins, tests products can also be built for the
host depending on their test target(s) destinations (which are inferred
based on dependencies). In order to properly support `--test-product`
option we need to fallback to `host` lookup for test products just like
we do for macros and plugins.

### Modifications:

- Added a fallback lookup to `computeLLBuildTargetName`

### Result:

`--test-product` now supports both `host` and `target` destination
products.
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