From a78f3699eb08ec55e88b633ccd759d23298946c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 27 Oct 2019 19:20:21 +0100 Subject: [PATCH] Help compiling GRDB with SWIFT_VERSION 5.0 and all opt-in APIs --- Support/GRDB.xcconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Support/GRDB.xcconfig b/Support/GRDB.xcconfig index e6cedc256..a8c91b9d3 100644 --- a/Support/GRDB.xcconfig +++ b/Support/GRDB.xcconfig @@ -6,3 +6,8 @@ MODULEMAP_FILE = $(SRCROOT)/Support/module.modulemap // Slow compilation hunt: // OTHER_SWIFT_FLAGS = $(inherited) -Xfrontend -warn-long-expression-type-checking=100 -Xfrontend -warn-long-function-bodies=100 + +// Compile with Swift 5 and all opt-in APIs +//SWIFT_VERSION = 5.0 +//GCC_PREPROCESSOR_DEFINITIONS = $(inherited) GRDB_SQLITE_ENABLE_PREUPDATE_HOOK=1 +//OTHER_SWIFT_FLAGS = $(inherited) -D SQLITE_ENABLE_FTS5 -D SQLITE_ENABLE_PREUPDATE_HOOK