mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
This currently only affects MacOS builds, as that's the only platform where clang is used.
23 lines
680 B
Groovy
23 lines
680 B
Groovy
model {
|
|
dependencyConfigs {
|
|
googletest(DependencyConfig) {
|
|
groupId = 'edu.wpi.first.thirdparty.frc2018'
|
|
artifactId = 'googletest'
|
|
headerClassifier = 'headers'
|
|
ext = 'zip'
|
|
version = '1.8.0-1-4e4df22'
|
|
sharedConfigs = [:]
|
|
staticConfigs = project.staticGtestConfigs
|
|
}
|
|
}
|
|
binaries {
|
|
withType(GoogleTestTestSuiteBinarySpec) {
|
|
if (toolChain instanceof Clang) {
|
|
println "Clang Detected - Using ASAN"
|
|
cppCompiler.args << '-fsanitize=address'
|
|
linker.args << '-fsanitize=address'
|
|
}
|
|
}
|
|
}
|
|
}
|