1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix the "sdevtest" testrunner.tcl command so that it correctly enables asan on windows.

FossilOrigin-Name: 6463192369ff22eb15d4e34590ef55cd8a6f2501227835664816277806bf961b
This commit is contained in:
dan
2023-08-28 20:02:59 +00:00
parent 9b0e9f9089
commit ecdc5b3e6f
3 changed files with 19 additions and 12 deletions

View File

@ -539,7 +539,6 @@ proc make_script {cfg srcdir bMsvc} {
default {
error "Cannot translate $param for MSVC"
}
}
}
@ -547,11 +546,19 @@ proc make_script {cfg srcdir bMsvc} {
}
if {[string range $param 0 0]=="-"} {
if {$bMsvc && [regexp -- {^-O(\d+)$} $param -> level]} {
lappend makeOpts OPTIMIZATIONS=$level
} else {
lappend cflags $param
if {$bMsvc} {
if {[regexp -- {^-O(\d+)$} $param -> level]} {
lappend makeOpts OPTIMIZATIONS=$level
continue
}
if {$param eq "-fsanitize=address,undefined"} {
lappend makeOpts ASAN=1
continue
}
}
lappend cflags $param
continue
}