Files
allwpilib/shared/googletest.gradle
Jaci Brunning 340b26bada Use ASAN when on Clang (#1187)
This currently only affects MacOS builds, as that's the only platform where clang is used.
2018-07-16 22:48:02 -07:00

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'
}
}
}
}