We're adding a Package.swift for an ObjC library, and the library also provides a tool, is there any way to make the Package.swift also be able to build that tool?
It seems like .executable might be tied to only building Swift binaries, and can't build one out of ObjC sources?
Would moving the tool's code to a separate library target and adding a single main.swift file calling the tool's entry point from the executable target be a suitable workaround for you?
As far as I understand, SwiftPM doesn't support mixed language targets currently, and probably doesn't support non-Swift executable targets either, as you said.
Yea, that's what I was going to do if there was no better way. I'll likely have to use crt_externs.h to get things going in the model so I have the argc/argv to wire thru.