1# SPDX-License-Identifier: Apache-2.0 2 3if(COMPILER STREQUAL gcc) 4 zephyr_compile_options(-mcpu=${GCC_M_CPU}) 5 6 zephyr_compile_options_ifdef(CONFIG_ISA_ARCV2 -mno-sdata) 7else() 8 zephyr_compile_options_ifdef(CONFIG_SOC_QEMU_ARC_HS -arcv2hs -core2 -Xatomic 9 -Xunaligned -Xcode_density -Xswap -Xbitscan 10 -Xmpy_option=qmpyh -Xshift_assist -Xbarrel_shifter 11 -Xtimer0 -Xtimer1) 12 13 zephyr_ld_option_ifdef(CONFIG_SOC_QEMU_ARC_HS -Hlib=hs38_full) 14 15 if(NOT CONFIG_SOC_QEMU_ARC_HS) 16 message(WARNING "QEMU ARC platforms other than HS3X are not supported yet with MW toolchain") 17 endif() 18endif() 19 20set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "") 21