zephyr/arch/x86_64/CMakeLists.txt

18 lines
314 B
CMake

# SPDX-License-Identifier: Apache-2.0
set(X86_64_BASE_CFLAGS
-ffreestanding
-fno-pic
-fno-asynchronous-unwind-tables
-mno-sse
-mno-red-zone)
add_subdirectory(core)
zephyr_compile_options(${X86_64_BASE_CFLAGS} -mx32)
zephyr_link_libraries(
-mx32
${LINKERFLAGPREFIX},-melf32_x86_64
)