Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import PackageDescription
/// Compile-time options
/// - seealso: [Recommended Compile-time Options](https://sqlite.org/compile.html#recommended_compile_time_options)
let compileTimeOptions: [CSetting] = [
// SwiftPM does not define NDEBUG for C targets even in release
// builds, so sqlite3.c ships with its internal assert()s (and their
// documented ~3x overhead) enabled. Compile them out for release,
// matching what the autoconf/CMake builds do.
.define("NDEBUG", .when(configuration: .release)),
// https://sqlite.org/compile.html#dqs
.define("SQLITE_DQS", to: "0", .when(traits: ["DQS_0"])),
.define("SQLITE_DQS", to: "1", .when(traits: ["DQS_1"])),
Expand Down