colonel/toolchains/i686-elf.cmake

11 lines
464 B
CMake
Raw Normal View History

2018-03-14 20:44:41 +00:00
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR i686)
2018-03-14 17:31:58 +00:00
2018-03-14 20:44:41 +00:00
set(CMAKE_C_COMPILER i686-elf-gcc)
2018-04-11 18:53:38 +00:00
set(CMAKE_C_FLAGS "-ffreestanding -fno-builtin" CACHE STRING "C flags for test compilation.")
set(CMAKE_EXE_LINKER_FLAGS "-ffreestanding -nostdlib" CACHE STRING "Linker flags for test compilation.")
set(CMAKE_TRY_COMPILE_PLATFORM_VARIABLES CMAKE_C_FLAGS)
2018-03-14 20:44:41 +00:00
set(CMAKE_ASM_COMPILER i686-elf-as)
set(64BIT FALSE CACHE BOOL "Whether the architecture supports 64-bit.")