mirror of
https://github.com/valentineus/kp3s-lgvl.git
synced 2025-12-03 03:29:03 +04:00
Initial commit
This commit is contained in:
22
buildroot/share/PlatformIO/scripts/common-cxxflags.py
Normal file
22
buildroot/share/PlatformIO/scripts/common-cxxflags.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# 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
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
if env.GetBuildType() == "debug":
|
||||
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
|
||||
Reference in New Issue
Block a user