mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Add support for board's build "extra_flags"
This commit is contained in:
@ -91,6 +91,8 @@ if "BOARD" in env:
|
|||||||
"$PIOHOME_DIR", "packages", "ldscripts",
|
"$PIOHOME_DIR", "packages", "ldscripts",
|
||||||
"${BOARD_OPTIONS['build']['ldscript']}")]
|
"${BOARD_OPTIONS['build']['ldscript']}")]
|
||||||
)
|
)
|
||||||
|
if "extra_flags" in env.get("BOARD_OPTIONS", {}).get("build", {}):
|
||||||
|
env.MergeFlags(env.subst("${BOARD_OPTIONS['build']['extra_flags']}"))
|
||||||
|
|
||||||
env.PrependENVPath(
|
env.PrependENVPath(
|
||||||
"PATH",
|
"PATH",
|
||||||
|
Reference in New Issue
Block a user