Skip to content
Permalink
Browse files

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>
  • Loading branch information...
ozhuraki authored and nashif committed Mar 8, 2019
1 parent 4596e15 commit 2211935ed656721e7af37b072ba01f4405f5f67f
Showing with 2 additions and 1 deletion.
  1. +2 −1 CMakeLists.txt
@@ -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

0 comments on commit 2211935

Please sign in to comment.
You can’t perform that action at this time.