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:
parent
4596e155a3
commit
2211935ed6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue