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

swift-frontend flag -target-variant does not persist in swift object file when generating static library #73546

Open
jpeezzy opened this issue May 9, 2024 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@jpeezzy
Copy link

jpeezzy commented May 9, 2024

Description

Currently, the Cxx-interop module located at swift/stdlib is the only component that compiles as a static library while only containing swift files. When performing standard builds with cxx-interop enabled, the object files that are generated using swift-frontend ( Cxx.o , CxxStdlib.o ) do not contain maccatalyst platform when linking to a static library using lipo

Reproduction

./swift/utils/build-script --skip-build-benchmarks true -R -i --enable-experimental-cxx-interop true --enable-cxx-interop-swift-bridging-header true  --skip-watchos --skip-tvos --skip-ios --enable-experimental-string-processing true --maccatalyst true --build-swift-private-stdlib false

Expected behavior

when running otool -l lib/swift/macosx/arm64/libswiftCxxStdlib.a | grep platform, you should see both platform 1 and platform 6 ( maccatalyst ), but instead you only see platform 1

Environment

swift-5.10-release, but is also in main as well.

Additional information

No response

@jpeezzy jpeezzy added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

1 participant