Closed mattwhiteside closed 2 months ago
I'm experiencing the same crash / stack trace when trying to build the swift-cmake-examples/4_swift_macros at main · apple/swift-cmake-examples project.
swift-DEVELOPMENT-SNAPSHOT-2024-09-06 Building from command line on macOS Sonoma 14.6.1
Build works OK when using the toolchain bundled with Xcode 15.4
FYI the crash I was experiencing is fixed with the swift-DEVELOPMENT-SNAPSHOT-2024-09-11-a version.
Thank you. Yes it's working now for me too.
Description
Trying to create a swift library that links in a C++ library.
Reproduction
I'm trying to compiling the following the C++ code, but extracted into a library:
https://github.com/smarr/SOMpp
The C++ library/code compiles ok on its own. Trying to compile a swift library that links it crashes, even when everything in the umbrella header is commented out.
I've specified the build settings for the C++ library via a Package.swift file (seemed much easier than doing it with Cmake).
Stack dump
Expected behavior
Compiler doesn't crash.
Environment
swift-DEVELOPMENT-SNAPSHOT-2024-08-26
I'm running this build via Xcode Version 16.0 beta 6 (16A5230g).
Additional information
No response