🔨 Fix Warnings.cpp force-recompile
This commit is contained in:
parent
7361c03aa4
commit
de0706e52c
|
@ -86,10 +86,12 @@ if pioutil.is_pio_build():
|
||||||
#
|
#
|
||||||
# Give warnings on every build
|
# Give warnings on every build
|
||||||
#
|
#
|
||||||
srcpath = os.path.join(env['PROJECT_BUILD_DIR'], build_env, "src", "src")
|
build_dir = os.path.join(env['PROJECT_BUILD_DIR'], build_env);
|
||||||
warnfile = os.path.join(srcpath, "inc", "Warnings.cpp.o")
|
for outdir in [ build_dir, os.path.join(build_dir, "debug") ]:
|
||||||
if os.path.exists(warnfile):
|
for wext in [ ".cpp", "" ]:
|
||||||
os.remove(warnfile)
|
warnfile = os.path.join(outdir, "src", "src", "inc", "Warnings" + wext + ".o")
|
||||||
|
if os.path.exists(warnfile):
|
||||||
|
os.remove(warnfile)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Rebuild 'settings.cpp' for EEPROM_INIT_NOW
|
# Rebuild 'settings.cpp' for EEPROM_INIT_NOW
|
||||||
|
|
Loading…
Reference in a new issue