krzyzanowskim/OpenSSL

Problem with build with SPM and interoperabilityMode

jaceklapinski opened this issue · 3 comments

Hello,

I am trying to build lib with C++ where one of dependency is OpenSSL

I have a lot of errors:

Screenshot 2024-06-18 at 12 29 26

I did try to use linker mode:

cSettings: [ .unsafeFlags(["-Wno-module-import-in-extern-c"]), ]

But no result.

Sample project:

cpp_interop_spm_ssl_test.zip

Best !

thanks! and I blame Xcode/SwiftPM (always) for mixing up parameters and treating OpenSSL incorrectly

Yeah i have similar problems with other libs like asio or xxhash

closing as I don't know if there is anything I can do about it. Do yo mind report these issues to Swift itself?