mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
added -DSQLITE_ENABLE_API_ARMOR for developers
This commit is contained in:
parent
69d9a31fc0
commit
6e96dd112a
1 changed files with 10 additions and 0 deletions
10
Makefile.PL
10
Makefile.PL
|
@ -5,6 +5,10 @@ use ExtUtils::MakeMaker;
|
||||||
use Config;
|
use Config;
|
||||||
use File::Spec;
|
use File::Spec;
|
||||||
|
|
||||||
|
sub DEVELOPER_ONLY () {
|
||||||
|
return -d '.git' ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
# Some dependencies need to be more aggressive on Windows
|
# Some dependencies need to be more aggressive on Windows
|
||||||
sub WINLIKE () {
|
sub WINLIKE () {
|
||||||
return 1 if $^O eq 'MSWin32';
|
return 1 if $^O eq 'MSWin32';
|
||||||
|
@ -224,6 +228,12 @@ my @CC_DEFINE = (
|
||||||
'-DSQLITE_ENABLE_STAT4', # for sqlite >= 3.8.3.1
|
'-DSQLITE_ENABLE_STAT4', # for sqlite >= 3.8.3.1
|
||||||
'-DNDEBUG=1',
|
'-DNDEBUG=1',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (DEVELOPER_ONLY) {
|
||||||
|
# for sqlite >= 3.8.8
|
||||||
|
push @CC_DEFINE, '-DSQLITE_ENABLE_API_ARMOR';
|
||||||
|
}
|
||||||
|
|
||||||
if ( $^O eq 'cygwin') {
|
if ( $^O eq 'cygwin') {
|
||||||
push @CC_DEFINE, '-DSQLITE_TEMP_STORE=2';
|
push @CC_DEFINE, '-DSQLITE_TEMP_STORE=2';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue