Skip to content

Commit

Permalink
馃敤 Fix Warnings.cpp force-recompile
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 15, 2022
1 parent 686d1fb commit adeca47
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions buildroot/share/PlatformIO/scripts/preflight-checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ def sanity_check_target():
#
# Give warnings on every build
#
srcpath = os.path.join(env['PROJECT_BUILD_DIR'], build_env, "src", "src")
warnfile = os.path.join(srcpath, "inc", "Warnings.cpp.o")
if os.path.exists(warnfile):
os.remove(warnfile)
build_dir = os.path.join(env['PROJECT_BUILD_DIR'], build_env);
for outdir in [ build_dir, os.path.join(build_dir, "debug") ]:
for wext in [ ".cpp", "" ]:
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
Expand Down

0 comments on commit adeca47

Please sign in to comment.