Create a variable for 64-bit to check uint64_t.
This commit is contained in:
parent
5cea65e807
commit
003e3d9604
@ -39,6 +39,9 @@ set(CMAKE_EXE_LINKER_FLAGS "-ffreestanding -nostdlib")
|
|||||||
|
|
||||||
# perform data type checks
|
# perform data type checks
|
||||||
include(CheckTypeSize)
|
include(CheckTypeSize)
|
||||||
|
if(64BIT)
|
||||||
|
check_type_size("uint64_t" UINT64_T)
|
||||||
|
endif()
|
||||||
check_type_size("uint32_t" UINT32_T)
|
check_type_size("uint32_t" UINT32_T)
|
||||||
check_type_size("uint16_t" UINT16_T)
|
check_type_size("uint16_t" UINT16_T)
|
||||||
check_type_size("uint8_t" UINT8_T)
|
check_type_size("uint8_t" UINT8_T)
|
||||||
|
@ -6,3 +6,5 @@ set(CMAKE_C_FLAGS "-ffreestanding -fno-builtin" CACHE STRING "C flags for test c
|
|||||||
set(CMAKE_EXE_LINKER_FLAGS "-ffreestanding -nostdlib" CACHE STRING "Linker 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_TRY_COMPILE_PLATFORM_VARIABLES CMAKE_C_FLAGS)
|
||||||
set(CMAKE_ASM_COMPILER i686-elf-as)
|
set(CMAKE_ASM_COMPILER i686-elf-as)
|
||||||
|
|
||||||
|
set(64BIT FALSE CACHE BOOL "Whether the architecture supports 64-bit.")
|
||||||
|
Loading…
Reference in New Issue
Block a user