mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[build] Remove debug info from examples (#3971)
They take up a LOT of disk space.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 = [:]
|
||||
|
||||
Reference in New Issue
Block a user