From 81ef02e41fab45235b8036d5415f0f520a9a8702 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 27 Jan 2025 21:17:53 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix=20sim=20build=20with=20gcc-1?= =?UTF-8?q?4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildroot/share/PlatformIO/scripts/common-cxxflags.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildroot/share/PlatformIO/scripts/common-cxxflags.py b/buildroot/share/PlatformIO/scripts/common-cxxflags.py index 6e740eb4ff..f0295d8f91 100644 --- a/buildroot/share/PlatformIO/scripts/common-cxxflags.py +++ b/buildroot/share/PlatformIO/scripts/common-cxxflags.py @@ -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"