Skip to content

Commit 8d99291

Browse files
committed
Use hard-coded SDK path for system module map
We've been down this path before. Unfortunately, `/usr/include/sqlite3.h` isn't reliably available on all Macs. Because module maps don't yet have dynamic support (something that the Swift Package Manager intends to have solved soon), we need to hardcode the SDK path (or use a script to substitute it). Fixes stephencelis#319. Signed-off-by: Stephen Celis <stephen@stephencelis.com>
1 parent 3b22bd0 commit 8d99291

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SQLite3/module.modulemap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module SQLite3 [system] {
2-
header "/usr/include/sqlite3.h"
2+
// Requires latest Xcode installed in standard path.
3+
header "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sqlite3.h"
4+
35
link "sqlite3"
6+
47
export *
58
}

0 commit comments

Comments
 (0)