2019-08-27 21:28:42 -04:00
|
|
|
#
|
|
|
|
# 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"
|
|
|
|
])
|
2020-10-31 18:14:10 -04:00
|
|
|
|
|
|
|
# Useful for JTAG debugging
|
|
|
|
#
|
2020-11-05 18:16:27 -05:00
|
|
|
# It will separe release and debug build folders.
|
|
|
|
# It useful when we need keep two live versions: one debug, for debugging,
|
2020-10-31 18:14:10 -04:00
|
|
|
# other release, for flashing.
|
|
|
|
# Without this, PIO will recompile everything twice for any small change.
|
2020-11-05 18:16:27 -05:00
|
|
|
#
|
2020-10-31 18:14:10 -04:00
|
|
|
if env.GetBuildType() == "debug":
|
|
|
|
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
|