Skip to content

Conversation

egorzhdan
Copy link
Contributor

This fixes a build failure in some external projects that depend on SwiftSyntax and enable C++ interop:

Undefined symbols for architecture arm64:
  "swiftsyntax_platform_mutex_lock(PlatformMutex)", referenced from:
      SwiftSyntax.SyntaxDataArena.layout(for: SwiftSyntax.ArenaAllocatedPointer<SwiftSyntax.SyntaxData>) -> SwiftSyntax.ArenaAllocatedBufferPointer<SwiftSyntax.ArenaAllocatedPointer<SwiftSyntax.SyntaxData>?> in Syntax.swift.o

rdar://161624532

This fixes a build failure in some external projects that depend on SwiftSyntax and enable C++ interop:

```
Undefined symbols for architecture arm64:
  "swiftsyntax_platform_mutex_lock(PlatformMutex)", referenced from:
      SwiftSyntax.SyntaxDataArena.layout(for: SwiftSyntax.ArenaAllocatedPointer<SwiftSyntax.SyntaxData>) -> SwiftSyntax.ArenaAllocatedBufferPointer<SwiftSyntax.ArenaAllocatedPointer<SwiftSyntax.SyntaxData>?> in Syntax.swift.o
```

rdar://161624532
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do a point 602.0.1 release with this in if needed, let me know.

@egorzhdan
Copy link
Contributor Author

Thanks, a dedicated release shouldn't be necessary for this!

@egorzhdan egorzhdan merged commit baef1ff into swiftlang:main Oct 1, 2025
34 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/extern-c branch October 1, 2025 14:03
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.

3 participants