mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Build Unix SQLite with SQLITE_ENABLE_COLUMN_METADATA so the metadata APIs are available on macOS and Linux. Remove the pdo_sqlite configure override that forced PHP to treat sqlite3_column_table_name() as unavailable, and add sanity checks for both SQLite compile options and PDO column metadata.
22 lines
430 B
PHP
22 lines
430 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
|
|
|
trait sqlite
|
|
{
|
|
protected function build(): void
|
|
{
|
|
UnixAutoconfExecutor::create($this)
|
|
->appendEnv([
|
|
'CFLAGS' => '-DSQLITE_ENABLE_COLUMN_METADATA=1',
|
|
])
|
|
->configure()
|
|
->make();
|
|
$this->patchPkgconfPrefix(['sqlite3.pc']);
|
|
}
|
|
}
|