You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, interesting. This is a Swift package, so 'Supports Text-Based InstallAPI' is not enabled. This happens because we set `-validate-tbd-against-ir=missing` in assertions-enabled builds. Can you switch from the swift-5.1-RELEASE toolchain to using Xcode 11 proper instead? That won't have this verifier enabled.
This happens because foo() is defined in the header, and is not a `static` function, which gives it external linkage and also embeds its definition inside this module. If you put the definition of `foo` in the .c file instead, this no longer errors.
@belkadan, should we be considering functions defined in a header as part of our module? I didn't even realize we compile those.
Attachment: Download
Environment
macOS 10.14.6
Xcode 11.0
swift-5.1-RELEASE
Additional Detail from JIRA
md5: b9f318224d89976c3449a2be2e087a8a
Issue Description:
The project has a C target and a Swift target which imports the C target.
Building with `/Library/Developer/Toolchains/swift-5.1-RELEASE.xctoolchain/usr/bin/swift build --product SwiftBugRepro` causes the error:
{{ }}
When I build with the suggested arguments the issue disappears.
Please see the attached project.
The text was updated successfully, but these errors were encountered: