mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47: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):
|
||||
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