forked from platformio/platformio-core
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):
|
||||
if not isinstance(flags, list):
|
||||
if (not isinstance(flags, list) or
|
||||
env.get("BOARD_OPTIONS", {}).get("platform") != "ststm32"):
|
||||
return flags
|
||||
|
||||
for pos, flag in enumerate(flags[:]):
|
||||
|
Reference in New Issue
Block a user