Skip to content

Commit

Permalink
Use hard-coded SDK path for system module map
Browse files Browse the repository at this point in the history
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 #319.

Signed-off-by: Stephen Celis <[email protected]>
  • Loading branch information
stephencelis committed Jan 11, 2016
1 parent c2c3d52 commit b1fa28c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SQLite3/module.modulemap
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module SQLite3 [system] {
header "/usr/include/sqlite3.h"
// Requires latest Xcode installed in standard path.
header "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sqlite3.h"

link "sqlite3"

export *
}

0 comments on commit b1fa28c

Please sign in to comment.