Skip to content

build: avoid installing SQLite3 #82322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025
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
25 changes: 13 additions & 12 deletions utils/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ enum Project {
ToolsSupportCore
LLBuild
ArgumentParser
SQLite
Driver
Crypto
Collections
Expand Down Expand Up @@ -2722,10 +2723,10 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
function Build-SQLite([Hashtable] $Platform) {
Build-CMakeProject `
-Src $SourceCache\swift-toolchain-sqlite `
-Bin "$BinaryCache\$($Platform.Triple)\sqlite" `
-InstallTo "$BinaryCache\$($Platform.Triple)\usr" `
-Bin (Get-ProjectBinaryCache $Platform SQLite) `
-Platform $Platform `
-UseMSVCCompilers C `
-BuildTargets default `
-Defines @{
BUILD_SHARED_LIBS = "NO";
}
Expand Down Expand Up @@ -2765,8 +2766,8 @@ function Build-Build([Hashtable] $Platform) {
SwiftDriver_DIR = (Get-ProjectCMakeModules $Platform Driver);
SwiftSystem_DIR = (Get-ProjectCMakeModules $Platform System);
TSC_DIR = (Get-ProjectCMakeModules $Platform ToolsSupportCore);
SQLite3_INCLUDE_DIR = "$BinaryCache\$($Platform.Triple)\usr\include";
SQLite3_LIBRARY = "$BinaryCache\$($Platform.Triple)\usr\lib\SQLite3.lib";
SQLite3_INCLUDE_DIR = "$SourceCache\swift-toolchain-sqlite\Sources\CSQLite\include";
SQLite3_LIBRARY = "$(Get-ProjectBinaryCache $Platform SQLite)\SQLite3.lib";
} + $ArchSpecificOptions)
}

Expand Down Expand Up @@ -2800,8 +2801,8 @@ function Build-LLBuild([Hashtable] $Platform) {
-Defines @{
BUILD_SHARED_LIBS = "YES";
LLBUILD_SUPPORT_BINDINGS = "Swift";
SQLite3_INCLUDE_DIR = "$BinaryCache\$($Platform.Triple)\usr\include";
SQLite3_LIBRARY = "$BinaryCache\$($Platform.Triple)\usr\lib\SQLite3.lib";
SQLite3_INCLUDE_DIR = "$SourceCache\swift-toolchain-sqlite\Sources\CSQLite\include";
SQLite3_LIBRARY = "$(Get-ProjectBinaryCache $Platform SQLite)\SQLite3.lib";
}
}

Expand Down Expand Up @@ -2830,8 +2831,8 @@ function Test-LLBuild {
FILECHECK_EXECUTABLE = ([IO.Path]::Combine((Get-ProjectBinaryCache $BuildPlatform BuildTools), "bin", "FileCheck.exe"));
LIT_EXECUTABLE = "$SourceCache\llvm-project\llvm\utils\lit\lit.py";
LLBUILD_SUPPORT_BINDINGS = "Swift";
SQLite3_INCLUDE_DIR = "$BinaryCache\$($Platform.Triple)\usr\include";
SQLite3_LIBRARY = "$BinaryCache\$($Platform.Triple)\usr\lib\SQLite3.lib";
SQLite3_INCLUDE_DIR = "$SourceCache\swift-toolchain-sqlite\Sources\CSQLite\include";
SQLite3_LIBRARY = "$(Get-ProjectBinaryCache $Platform SQLite)\SQLite3.lib";
}
}
}
Expand Down Expand Up @@ -2865,8 +2866,8 @@ function Build-Driver([Hashtable] $Platform) {
TSC_DIR = (Get-ProjectCMakeModules $Platform ToolsSupportCore);
LLBuild_DIR = (Get-ProjectCMakeModules $Platform LLBuild);
ArgumentParser_DIR = (Get-ProjectCMakeModules $Platform ArgumentParser);
SQLite3_INCLUDE_DIR = "$BinaryCache\$($Platform.Triple)\usr\include";
SQLite3_LIBRARY = "$BinaryCache\$($Platform.Triple)\usr\lib\SQLite3.lib";
SQLite3_INCLUDE_DIR = "$SourceCache\swift-toolchain-sqlite\Sources\CSQLite\include";
SQLite3_LIBRARY = "$(Get-ProjectBinaryCache $Platform SQLite)\SQLite3.lib";
SWIFT_DRIVER_BUILD_TOOLS = "YES";
LLVM_DIR = "$(Get-ProjectBinaryCache $Platform Compilers)\lib\cmake\llvm";
Clang_DIR = "$(Get-ProjectBinaryCache $Platform Compilers)\lib\cmake\clang";
Expand Down Expand Up @@ -2961,8 +2962,8 @@ function Build-PackageManager([Hashtable] $Platform) {
SwiftASN1_DIR = (Get-ProjectCMakeModules $Platform ASN1);
SwiftCertificates_DIR = (Get-ProjectCMakeModules $Platform Certificates);
SwiftSyntax_DIR = (Get-ProjectCMakeModules $Platform Compilers);
SQLite3_INCLUDE_DIR = "$BinaryCache\$($Platform.Triple)\usr\include";
SQLite3_LIBRARY = "$BinaryCache\$($Platform.Triple)\usr\lib\SQLite3.lib";
SQLite3_INCLUDE_DIR = "$SourceCache\swift-toolchain-sqlite\Sources\CSQLite\include";
SQLite3_LIBRARY = "$(Get-ProjectBinaryCache $Platform SQLite)\SQLite3.lib";
}
}

Expand Down