External import statements in swiftinterface doesn't respect `-fmodule-map-file` compiler option

Hi everyone,

I came across a compiler issue for .swiftinterface with external import dependencies. The dependency is an Objective-C module with custom modulemap. Typically, we can use the -fmodule-map-file compiler option to specify custom modulemap. This is also heavily used in CocoaPods. However, .swiftinterface module resolution seems not support this option. May I report the issue here?

To demonstrate the issue, I have a minimal reproducible example at GitHub - Kudo/Swift-Module-Issue: Minimal Reproducible Example of swiftinterface module resolution doesn't respect `-fmodule-map-file`. Although it's getting little complicated, if there's anything unclear, please let me know. Thanks!

1 Like

Reporting bugs here probably won't get much attention. It's best to file a bug at bugs.swift.org

thanks @jonprescott! i've created an bug report there at [SR-16007] External import statements in swiftinterface doesn't respect `-fmodule-map-file` compiler option · Issue #58268 · apple/swift · GitHub

2 Likes