mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Use ASAN when on Clang (#1187)
This currently only affects MacOS builds, as that's the only platform where clang is used.
This commit is contained in:
committed by
Peter Johnson
parent
7f000fecc4
commit
340b26bada
@@ -10,4 +10,13 @@ model {
|
||||
staticConfigs = project.staticGtestConfigs
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
withType(GoogleTestTestSuiteBinarySpec) {
|
||||
if (toolChain instanceof Clang) {
|
||||
println "Clang Detected - Using ASAN"
|
||||
cppCompiler.args << '-fsanitize=address'
|
||||
linker.args << '-fsanitize=address'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user