<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 10, 2016, at 10:31 PM, Daniel A. Steffen &lt;<a href="mailto:dsteffen@apple.com" class="">dsteffen@apple.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="font-family: HelveticaNeue; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">having -I /usr/local/include/dispatch doesn’t seem right to me, the C header include convention is all &lt;dispatch/*.h&gt; so the dispatch/ directory itself should not be part of the search path.&nbsp;</div><br class="Apple-interchange-newline"></div></blockquote></div><br class=""><div class="">The problem is that to pick up a modulemap / swiftmodule file right now in Swift, we need "-I /path/to" where /path/to contains "module.modulemap" / "foo.swiftmodule"</div><div class=""><br class=""></div><div class="">Meanwhile passing "-I /path/to" also will pick up all header files in that directory, which here includes "time.h".</div><div class=""><br class=""></div><div class="">I personally think that behavior (the Swift compiler behavior) is wrong to couple these two ideas. &nbsp;But arguing the compiler is wrong is probably above my pay grade.</div><div class=""><br class=""></div><div class="">Anyway, as long as this is the compiler behavior, we can't have "time.h" in the same directory as the modulemap. &nbsp;So either</div><div class=""><br class=""></div><div class=""><ul class="MailOutline"><li class="">we put swiftmodule / modulemap in /usr/local/include/dispatch and headers into /usr/local/include/dispatch/headers</li><li class="">we put headers in /usr/local/include/dispatch and swiftmodule/modulemap into /usr/local/include/dispatch/module</li></ul></div><div class=""><br class=""></div><div class="">I don't know which one to do, and I'm bad at wrestling autotools, so I'm not sure I can PR.</div><div class=""><br class=""></div><div class="">I'm working around by arbitrarily picking one of these resolutions and shell scripting it as part of my install.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>