Use "whole-archive" hook just for ST STM32 platform

This commit is contained in:
Ivan Kravets
2015-05-14 23:52:15 +02:00
parent b62ac20180
commit 5bc2cc6325

View File

@ -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[:]):