xcc: do not assume clang by default
Some toolchain variants come with no clang support, so do not assume clang by default and enable this using the enviornment variable XCC_USE_CLANG. export XCC_USE_CLANG=1 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
7c15ccf8ca
commit
01b1ac8c7e
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ set(SYSROOT_DIR ${TOOLCHAIN_HOME}/${SYSROOT_TARGET})
|
|||
# xt-xcc does not support -Og, so make it -O0
|
||||
set(OPTIMIZE_FOR_DEBUG_FLAG "-O0")
|
||||
|
||||
if(EXISTS ${CROSS_COMPILE}clang)
|
||||
if($ENV{XCC_USE_CLANG})
|
||||
set(CC clang)
|
||||
set(C++ clang++)
|
||||
else()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue