Files
rosetta/sys/bootstrap/CMakeLists.txt

17 lines
535 B
CMake

file(GLOB c_sources *.c *.h)
file(GLOB arch_sources arch/${CMAKE_SYSTEM_PROCESSOR}/*.S)
set_property(SOURCE ${arch_sources} PROPERTY LANGUAGE C)
add_executable(bootstrap ${c_sources} ${arch_sources})
target_link_libraries(bootstrap
libmango libc-core libc-malloc libfs-static liblaunch
interface::fs)
target_compile_options(bootstrap PRIVATE
-fno-stack-protector -nostdlib -ffreestanding)
target_link_options(bootstrap PRIVATE
-static -nostdlib -ffreestanding)
#-T ${CMAKE_CURRENT_SOURCE_DIR}/arch/${TARGET_ARCH}/layout.ld)