mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Use "whole-archive" hook just for ST STM32 platform
This commit is contained in:
@ -179,7 +179,8 @@ def get_build_flags(data):
|
|||||||
|
|
||||||
|
|
||||||
def _mbed_whole_archive_hook(flags):
|
def _mbed_whole_archive_hook(flags):
|
||||||
if not isinstance(flags, list):
|
if (not isinstance(flags, list) or
|
||||||
|
env.get("BOARD_OPTIONS", {}).get("platform") != "ststm32"):
|
||||||
return flags
|
return flags
|
||||||
|
|
||||||
for pos, flag in enumerate(flags[:]):
|
for pos, flag in enumerate(flags[:]):
|
||||||
|
Reference in New Issue
Block a user