|
@@ -86,10 +86,12 @@ if pioutil.is_pio_build():
|
86
|
86
|
#
|
87
|
87
|
# Give warnings on every build
|
88
|
88
|
#
|
89
|
|
- srcpath = os.path.join(env['PROJECT_BUILD_DIR'], build_env, "src", "src")
|
90
|
|
- warnfile = os.path.join(srcpath, "inc", "Warnings.cpp.o")
|
91
|
|
- if os.path.exists(warnfile):
|
92
|
|
- os.remove(warnfile)
|
|
89
|
+ build_dir = os.path.join(env['PROJECT_BUILD_DIR'], build_env);
|
|
90
|
+ for outdir in [ build_dir, os.path.join(build_dir, "debug") ]:
|
|
91
|
+ for wext in [ ".cpp", "" ]:
|
|
92
|
+ warnfile = os.path.join(outdir, "src", "src", "inc", "Warnings" + wext + ".o")
|
|
93
|
+ if os.path.exists(warnfile):
|
|
94
|
+ os.remove(warnfile)
|
93
|
95
|
|
94
|
96
|
#
|
95
|
97
|
# Rebuild 'settings.cpp' for EEPROM_INIT_NOW
|