/usr/lib/swift not in default C/C++ include path

Just a quick question here. I often use the Block and dispatch APIs in C shim targets to aid integration with Swift. On Linux at least, /usr/lib/swift under the Swift root is not in the include path, which means adding unsafe C/C++ flags (which then precludes using the package as a versioned dependency).

Are there any suggested ways around this (besides duplicating the headers locally)?

1 Like

Related issue is some system packages on Linux which install their headers into /usr/include/foo but themselves include <bar.h> rather than <foo/bar.h>, thereby requiring an unsafe flag to build with Swift.