Properly check the compiler.

This commit is contained in:
Nicolás Ortega Froysa 2018-04-11 20:53:38 +02:00
parent 6b05d87153
commit 4170a3d5ae
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -2,5 +2,7 @@ set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR i686) set(CMAKE_SYSTEM_PROCESSOR i686)
set(CMAKE_C_COMPILER i686-elf-gcc) set(CMAKE_C_COMPILER i686-elf-gcc)
set(CMAKE_C_COMPILER_WORKS TRUE) 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)
set(CMAKE_ASM_COMPILER i686-elf-as) set(CMAKE_ASM_COMPILER i686-elf-as)