mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
48451182f8
Make ClickHouse compilable and runnable on risc-v 64 So far only basic functionality was tested (on real hw), clickhouse server runs, exceptions works, client works, simple tests works. What doesn't work: 1. traces - they are always empty 2. system.stack_trace only have first frame
23 lines
657 B
CMake
23 lines
657 B
CMake
if (CMAKE_SYSTEM_PROCESSOR MATCHES "amd64|x86_64")
|
|
set (ARCH_AMD64 1)
|
|
endif ()
|
|
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*|arm64.*|ARM64.*)")
|
|
set (ARCH_AARCH64 1)
|
|
endif ()
|
|
if (ARCH_AARCH64 OR CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
|
|
set (ARCH_ARM 1)
|
|
endif ()
|
|
if (CMAKE_LIBRARY_ARCHITECTURE MATCHES "i386")
|
|
set (ARCH_I386 1)
|
|
endif ()
|
|
if ((ARCH_ARM AND NOT ARCH_AARCH64) OR ARCH_I386)
|
|
message (FATAL_ERROR "32bit platforms are not supported")
|
|
endif ()
|
|
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(ppc64le.*|PPC64LE.*)")
|
|
set (ARCH_PPC64LE 1)
|
|
endif ()
|
|
if (CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64")
|
|
set (ARCH_RISCV64 1)
|
|
endif ()
|
|
|