File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "target_overrides" : {
33 "*" : {
4- "target.c_lib" : "small"
4+ "target.c_lib" : "small" ,
5+ "target.application-profile" : "bare-metal"
56 }
67 } ,
78 "overrides" : {
Original file line number Diff line number Diff line change @@ -92,7 +92,9 @@ function(mbed_greentea_add_test)
9292 ${MBED_GREENTEA_TEST_SOURCES}
9393 )
9494
95- if (MBED_GREENTEA_TEST_BAREMETAL)
95+ # Resolve link library based on target.application-profile setting
96+ get_target_property (MBED_CORE_FLAGS_TARGET_LINK_LIBRARIES mbed-core-flags INTERFACE_LINK_LIBRARIES)
97+ if (NOT "mbed-rtos-flags" IN_LIST MBED_CORE_FLAGS_TARGET_LINK_LIBRARIES)
9698 list (APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-baremetal)
9799 else ()
98100 list (APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-os)
You can’t perform that action at this time.
0 commit comments