Skip to content

Commit

Permalink
Merge pull request #2 from bildhuus/fix-ios
Browse files Browse the repository at this point in the history
Fix building for iOS
  • Loading branch information
s-ludwig authored Aug 2, 2024
2 parents af9b8b8 + bc15b09 commit cbba754
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ preBuildCommands "clang -c ${SQLITE3D_PACKAGE_DIR}/sqlite3.c --target=arm64 -fPI
preBuildCommands "xcrun clang -isysroot \"`xcrun --show-sdk-path`\" -c \"${SQLITE3D_PACKAGE_DIR}/sqlite3.c\" --target=x86_64-apple-darwin -fPIC -o sqlite3-${PLATFORM}-${ARCH}.o" platform="osx-x86_64"
preBuildCommands "xcrun clang -isysroot \"`xcrun --show-sdk-path`\" -c \"${SQLITE3D_PACKAGE_DIR}/sqlite3.c\" --target=arm64-apple-darwin -fPIC -o sqlite3-${PLATFORM}-${ARCH}.o" platform="osx-aarch64"
# iOS
preBuildCommands "xcrun clang -isysroot \"`xcrun --show-sdk-path`\" -c \"${SQLITE3D_PACKAGE_DIR}/sqlite3.c\" --target=x86_64-apple-ios-simulator -fPIC -o sqlite3-${PLATFORM}-${ARCH}.o" platform="ios-x86_64"
preBuildCommands "xcrun clang -isysroot \"`xcrun --show-sdk-path`\" -c \"${SQLITE3D_PACKAGE_DIR}/sqlite3.c\" --target=arm64-apple-ios -fPIC -o sqlite3-${PLATFORM}-${ARCH}.o" platform="ios-aarch64"
preBuildCommands "xcrun clang -isysroot \"`xcrun --show-sdk-path --sdk iphonesimulator`\" -c \"${SQLITE3D_PACKAGE_DIR}/sqlite3.c\" --target=x86_64-apple-ios-simulator -fPIC -o sqlite3-${PLATFORM}-${ARCH}.o" platform="ios-x86_64"
preBuildCommands "xcrun clang -isysroot \"`xcrun --show-sdk-path --sdk iphoneos`\" -c \"${SQLITE3D_PACKAGE_DIR}/sqlite3.c\" --target=arm64-apple-ios -fPIC -o sqlite3-${PLATFORM}-${ARCH}.o" platform="ios-aarch64"

sourceFiles "sqlite3-${PLATFORM}-${ARCH}.o" platform="posix"
1 change: 1 addition & 0 deletions sqlite3.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#define SQLITE_CORE 1
#define SQLITE_AMALGAMATION 1
#define SQLITE_OMIT_SEH 1
#define HAVE_GETHOSTUUID 0
#ifndef SQLITE_PRIVATE
# define SQLITE_PRIVATE static
#endif
Expand Down

0 comments on commit cbba754

Please sign in to comment.