forked from platformio/platformio-core
Process "$BUILD_UNFLAGS" variable
This commit is contained in:
@ -266,9 +266,12 @@ env.Replace(
|
|||||||
|
|
||||||
# restore external build flags
|
# restore external build flags
|
||||||
env.ProcessFlags([
|
env.ProcessFlags([
|
||||||
env.get("BOARD_OPTIONS", {}).get("build", {}).get("extra_flags"),
|
env.get("BOARD_OPTIONS", {}).get("build", {}).get("extra_flags")
|
||||||
env.get("BUILD_FLAGS")
|
|
||||||
])
|
])
|
||||||
|
# remove base flags
|
||||||
|
env.ProcessUnFlags(env.get("BUILD_UNFLAGS"))
|
||||||
|
# apply user flags
|
||||||
|
env.ProcessFlags([env.get("BUILD_FLAGS")])
|
||||||
|
|
||||||
# Hook for K64F and K22F
|
# Hook for K64F and K22F
|
||||||
if board_type in ("frdm_k22f", "frdm_k64f"):
|
if board_type in ("frdm_k22f", "frdm_k64f"):
|
||||||
|
Reference in New Issue
Block a user