cmake: clang: Make clang pick -T option on linking

When linking, clang doesn't pick -T for some reason and complains,
while -Wl,-T works for both, gcc and clang.

Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
Oleg Zhurakivskyy 2019-03-08 11:29:33 +02:00 committed by Anas Nashif
parent 4596e155a3
commit 2211935ed6

View file

@ -402,7 +402,8 @@ zephyr_ld_option_ifdef(
)
get_property(TOPT GLOBAL PROPERTY TOPT)
set_ifndef( TOPT -T)
set_ifndef( TOPT -Wl,-T) # clang doesn't pick -T for some reason and complains,
# while -Wl,-T works for both, gcc and clang
if(NOT CONFIG_NATIVE_APPLICATION)
# Funny thing is if this is set to =error, some architectures will