toolchain: oneApi: Fix support and update for 2023.0.0 release
The oneApi support has bit rotten since it was first introduced. Update the support to function with the latest 2023.0.0 release and add a check to only support that version or newer for now. Versions before 2021.2.0 have linker script failures. Various fixes made: * In the 2023.0.0 release, various binaries are in a llvm-bin path so add support to search in that path. This replaces the python search path that much older versions needed. * newlib isn't supported with oneApi so set TOOLCHAIN_HAS_NEWLIB to OFF to match that. * 2023.0.0 doesn't back llvm-nm, so use binutils version. This is expected to be fixed in 2023.1.0 release so add a check to handle either case. * Update compiler flag check based on clang to also support CMAKE_C_COMPILER_ID of "IntelLLVM" as that is how the oneApi toolchain reports itself. Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
parent
2e6248cb86
commit
2d12766e78
4 changed files with 37 additions and 4 deletions
|
@ -407,7 +407,8 @@ zephyr_compile_options(${COMPILER_OPT_AS_LIST})
|
|||
|
||||
# TODO: Include arch compiler options at this point.
|
||||
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang" AND
|
||||
NOT CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM")
|
||||
# GCC assumed
|
||||
zephyr_cc_option(-fno-reorder-functions)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue