1
0
Fork 0
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:
Kenichi Ishigaki 2015-02-13 01:49:30 +09:00
parent 69d9a31fc0
commit 6e96dd112a

View file

@ -5,6 +5,10 @@ use ExtUtils::MakeMaker;
use Config;
use File::Spec;
sub DEVELOPER_ONLY () {
return -d '.git' ? 1 : 0;
}
# Some dependencies need to be more aggressive on Windows
sub WINLIKE () {
return 1 if $^O eq 'MSWin32';
@ -224,6 +228,12 @@ my @CC_DEFINE = (
'-DSQLITE_ENABLE_STAT4', # for sqlite >= 3.8.3.1
'-DNDEBUG=1',
);
if (DEVELOPER_ONLY) {
# for sqlite >= 3.8.8
push @CC_DEFINE, '-DSQLITE_ENABLE_API_ARMOR';
}
if ( $^O eq 'cygwin') {
push @CC_DEFINE, '-DSQLITE_TEMP_STORE=2';
}