mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 06:08:38 -04:00
For ASAN testing
This commit is contained in:
parent
20782166cf
commit
77f897da5a
1 changed files with 6 additions and 0 deletions
|
@ -290,6 +290,12 @@ if ($^O =~ /bsd/i && $^O !~ /(?:open|net)bsd/) {
|
||||||
|
|
||||||
my (@CCFLAGS, @LDFLAGS, @LDDLFLAGS);
|
my (@CCFLAGS, @LDFLAGS, @LDDLFLAGS);
|
||||||
|
|
||||||
|
if ($ENV{TEST_DBD_SQLITE_WITH_ASAN}) {
|
||||||
|
push @CCFLAGS, '-fsanitize=address -static-libasan -fuse-ld=gold -fno-omit-frame-pointer -g -O2';
|
||||||
|
push @LDFLAGS, '-fsanitize=address -static-libasan -fuse-ld=gold -fno-omit-frame-pointer -g -O2';
|
||||||
|
push @LDDLFLAGS, '-fsanitize=address -static-libasan -fuse-ld=gold -fno-omit-frame-pointer -g -O2';
|
||||||
|
}
|
||||||
|
|
||||||
# RT #70135: See if ld supports Bsymbolic;
|
# RT #70135: See if ld supports Bsymbolic;
|
||||||
unless ($^O eq 'MSWin32' && $Config{ld} =~ /link/) {
|
unless ($^O eq 'MSWin32' && $Config{ld} =~ /link/) {
|
||||||
for my $path (File::Spec->path) {
|
for my $path (File::Spec->path) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue