mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-01-07 23:27:43 -07:00
🔨 Fix sim build with gcc-14
This commit is contained in:
parent
0226692e6b
commit
81ef02e41f
1 changed files with 3 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue