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)
7
8else()
9
10	zephyr_compile_options_ifdef(CONFIG_SOC_QEMU_ARC_HS -arcv2hs -core2 -Xatomic
11			       -Xunaligned -Xcode_density -Xswap -Xbitscan
12			       -Xmpy_option=qmpyh -Xshift_assist -Xbarrel_shifter
13			       -Xtimer0 -Xtimer1)
14
15	zephyr_ld_option_ifdef(CONFIG_SOC_QEMU_ARC_HS -Hlib=hs38_full)
16
17	if(NOT CONFIG_SOC_QEMU_ARC_HS)
18		message(WARNING "QEMU ARC platforms other than HS are not supported yet with MW toolchain")
19	endif()
20
21endif()
22