[build] Remove debug info from examples (#3971)

They take up a LOT of disk space.
This commit is contained in:
Thad House
2022-01-27 20:59:13 -08:00
committed by GitHub
parent 84df14dd70
commit dd9c92d5bf
2 changed files with 10 additions and 1 deletions

View File

@@ -21,7 +21,10 @@ nativeUtils {
nativeUtils.wpi.addWarnings()
nativeUtils.wpi.addWarningsAsErrors()
nativeUtils.wpi.addReleaseSymbolGeneration()
if (project.name != 'wpilibcExamples') {
nativeUtils.wpi.addReleaseSymbolGeneration()
}
nativeUtils.setSinglePrintPerPlatform()
nativeUtils.enableSourceLink()

View File

@@ -39,6 +39,12 @@ nativeUtils.platformConfigs.named(nativeUtils.wpi.platforms.roborio).configure {
cppCompiler.args.add('-Werror=deprecated-declarations')
}
nativeUtils.platformConfigs.named(nativeUtils.wpi.platforms.windowsx64).configure {
linker.args.remove('/DEBUG:FULL')
cppCompiler.debugArgs.remove('/Zi')
cCompiler.debugArgs.remove('/Zi')
}
ext {
sharedCvConfigs = examplesMap + templatesMap + [commands: []]
staticCvConfigs = [:]