mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 05:03:20 +00:00
cf9a33d04f
* Allow build without rt library * fix * Cmake misc * CLICKHOUSE-3600 Use correct lld version * CLICKHOUSE-3600 Use correct lld version * Use libllvm same version as clang * fix * Fix build with iodbc * Fix iodbc build * Fix gold find * Fix empty lines
20 lines
554 B
CMake
20 lines
554 B
CMake
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)")
|
|
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)
|
|
set (ARCH_32 1)
|
|
message (WARNING "Support for 32bit platforms is highly experimental")
|
|
endif ()
|
|
if (CMAKE_SYSTEM MATCHES "Linux")
|
|
set (ARCH_LINUX 1)
|
|
endif ()
|
|
if (CMAKE_SYSTEM MATCHES "FreeBSD")
|
|
set (ARCH_FREEBSD 1)
|
|
endif ()
|