Verify wasmkit is a universal binary #163
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requested in swift PR-82393
lit.cfg: To configure wasmkit, this adds substitution variable and checks path exists
test....py: To check wasmkit executable binary is universal, this uses
file
tool from the OSfile
should be available on all macOS (and also available on Linux)FileCheck
, but does not verify formatsTest put in
test-snapshot-binaries
as peer of rpath tests (instead of in wasmkit dir)swift/utils/swift_build_support/swift_build_support/products
wasmkit.py#run_swift_build()
handles both rpath and universal-binaryPR could work as-is, or be extended:
(Also please let me know if a swift-integration-test issue is preferred before this PR, to handle issue/PR scope discussions)