mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Process "unflags" after frameworks
This commit is contained in:
@ -63,8 +63,6 @@ def BuildProgram(env):
|
|||||||
# process extra flags from board
|
# process extra flags from board
|
||||||
if "BOARD" in env and "build.extra_flags" in env.BoardConfig():
|
if "BOARD" in env and "build.extra_flags" in env.BoardConfig():
|
||||||
env.ProcessFlags(env.BoardConfig().get("build.extra_flags"))
|
env.ProcessFlags(env.BoardConfig().get("build.extra_flags"))
|
||||||
# remove base flags
|
|
||||||
env.ProcessUnFlags(env.get("BUILD_UNFLAGS"))
|
|
||||||
# apply user flags
|
# apply user flags
|
||||||
env.ProcessFlags(env.get("BUILD_FLAGS"))
|
env.ProcessFlags(env.get("BUILD_FLAGS"))
|
||||||
|
|
||||||
@ -74,6 +72,9 @@ def BuildProgram(env):
|
|||||||
# restore PIO macros if it was deleted by framework
|
# restore PIO macros if it was deleted by framework
|
||||||
_append_pio_macros()
|
_append_pio_macros()
|
||||||
|
|
||||||
|
# remove specified flags
|
||||||
|
env.ProcessUnFlags(env.get("BUILD_UNFLAGS"))
|
||||||
|
|
||||||
# build dependent libs; place them before built-in libs
|
# build dependent libs; place them before built-in libs
|
||||||
env.Prepend(LIBS=env.BuildProjectLibraries())
|
env.Prepend(LIBS=env.BuildProjectLibraries())
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user