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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user