mirror of
https://github.com/trailbaseio/trailbase.git
synced 2026-04-29 21:19:33 -05:00
Include sqlite3 headers from libsqlite3-sys bundled sqlite3 for sqlean rather than relying on system headers.
This commit is contained in:
@@ -34,7 +34,7 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update && \
|
||||
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev libsqlite3-dev zip
|
||||
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev zip
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update && \
|
||||
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev libsqlite3-dev
|
||||
sudo apt-get install -y --no-install-recommends curl libssl-dev pkg-config libclang-dev protobuf-compiler libprotobuf-dev
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
Vendored
+3
@@ -55,9 +55,12 @@ fn build_object() {
|
||||
// Disable SQLEAN's define-eval feature
|
||||
.flag("-DDISABLE_DEFINE_EVAL");
|
||||
|
||||
let sqlite3_include_dir = env::var("DEP_SQLITE3_INCLUDE").expect("Set by libsqlite3-sys");
|
||||
|
||||
cfg
|
||||
.warnings(false)
|
||||
.include(PATH)
|
||||
.include(sqlite3_include_dir)
|
||||
.files(files.iter().map(|f| format!("{PATH}/{f}")))
|
||||
.compile("define");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user