🔨 Fix sim build with gcc-14

This commit is contained in:
Scott Lahteine 2025-01-27 21:17:53 -06:00
parent 0226692e6b
commit 81ef02e41f

View file

@ -16,6 +16,7 @@ if pioutil.is_pio_build():
if "teensy" not in env["PIOENV"]:
cxxflags += ["-Wno-register"]
env.Append(CXXFLAGS=cxxflags)
env.Append(CFLAGS=["-Wno-implicit-function-declaration"])
#
# Add CPU frequency as a compile time constant instead of a runtime variable
@ -27,8 +28,8 @@ if pioutil.is_pio_build():
# Useful for JTAG debugging
#
# It will separate release and debug build folders.
# It useful to keep two live versions: a debug version for debugging and another for
# release, for flashing when upload is not done automatically by jlink/stlink.
# This is useful to keep two live versions: a debug version and a release version,
# for flashing when upload is not done automatically by jlink/stlink.
# Without this, PIO needs to recompile everything twice for any small change.
if env.GetBuildType() == "debug" and env.get("UPLOAD_PROTOCOL") not in ["jlink", "stlink", "custom"]:
env["BUILD_DIR"] = "$PROJECT_BUILD_DIR/$PIOENV/debug"