-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cross-compiling tests doesn't work if a package uses macros #8094
Comments
@marcprux, can you generate a linux SDK bundle on macOS using the swift-sdk-generator and see if this reproduces with the linux SDK bundle also? |
If I create a
The same error occurs with the |
Note that this might not affect all macros, but might be some specific issue with |
Thanks for checking, Marc. |
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
It always fails with an error like this with my Android SDK bundles:
I first reported this bug in April, nothing has changed since.
Expected behavior
The tests to cross-compile
Actual behavior
Weird errors that it can't find a file
Steps to reproduce
It fails with a similar error for the latest trunk 6.1 SDK bundle used by the command
~/swift-DEVELOPMENT-SNAPSHOT-2024-10-30-a-ubi9/usr/bin/swift build --build-tests --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -disallow-use-new-driver
, with that last flag needed because of a swift-driver 6.1 regression, swiftlang/swift-driver#1723.Swift Package Manager version/commit hash
SwiftPM 6.0 and 6.1, cross-compiling packages that use macros didn't work at all before that
Swift & OS version (output of
swift --version ; uname -a
)Swift 6.0.2/6.1 cross-compiling the swift-syntax example or swift-foundation tests for Android AArch64 from linux x86_64
The text was updated successfully, but these errors were encountered: