From dd9c92d5bf91bb679521e4301463f61bc532f589 Mon Sep 17 00:00:00 2001 From: Thad House Date: Thu, 27 Jan 2022 20:59:13 -0800 Subject: [PATCH] [build] Remove debug info from examples (#3971) They take up a LOT of disk space. --- shared/config.gradle | 5 ++++- wpilibcExamples/build.gradle | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/shared/config.gradle b/shared/config.gradle index 625facc538..9d5bad6b95 100644 --- a/shared/config.gradle +++ b/shared/config.gradle @@ -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() diff --git a/wpilibcExamples/build.gradle b/wpilibcExamples/build.gradle index 975e90ae70..7561ed5e53 100644 --- a/wpilibcExamples/build.gradle +++ b/wpilibcExamples/build.gradle @@ -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 = [:]