1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-22 10:17:33 +00:00
MarlinFirmware/buildroot/share/PlatformIO/scripts/common-cxxflags.py

23 lines
617 B
Python
Raw Normal View History

#
# common-cxxflags.py
# Convenience script to apply customizations to CPP flags
#
Import("env")
env.Append(CXXFLAGS=[
"-Wno-register"
#"-Wno-incompatible-pointer-types",
#"-Wno-unused-const-variable",
#"-Wno-maybe-uninitialized",
#"-Wno-sign-compare"
])
# Useful for JTAG debugging
#
2020-11-05 23:16:27 +00:00
# It will separe release and debug build folders.
# It useful when we need keep two live versions: one debug, for debugging,
# other release, for flashing.
# Without this, PIO will recompile everything twice for any small change.
2020-11-05 23:16:27 +00:00
#
if env.GetBuildType() == "debug":
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'