mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix issue with board extraFlags
This commit is contained in:
@ -50,8 +50,8 @@ def BuildProgram(env):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# process extra flags from board
|
# process extra flags from board
|
||||||
if "BOARD" in env:
|
if "BOARD" in env and "build.extra_flags" in env.BoardConfig():
|
||||||
env.ProcessFlags(env.BoardConfig().get("build.extra_flags", None))
|
env.ProcessFlags(env.BoardConfig().get("build.extra_flags"))
|
||||||
# remove base flags
|
# remove base flags
|
||||||
env.ProcessUnFlags(env.get("BUILD_UNFLAGS"))
|
env.ProcessUnFlags(env.get("BUILD_UNFLAGS"))
|
||||||
# apply user flags
|
# apply user flags
|
||||||
|
Reference in New Issue
Block a user