mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fix code for loongarch64
Fix `base/poco` and `contrib/openssl-cmake` based on code review comments(https://github.com/ClickHouse/ClickHouse/pull/61509).
This commit is contained in:
parent
eb96f19e48
commit
47b7d3748d
@ -212,6 +212,7 @@
|
||||
# define POCO_ARCH_LITTLE_ENDIAN 1
|
||||
#elif defined(__loongarch64)
|
||||
# define POCO_ARCH POCO_ARCH_LOONGARCH64
|
||||
# define POCO_ARCH_LITTLE_ENDIAN 1
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -210,7 +210,7 @@ elseif(ARCH_RISCV64)
|
||||
elseif(ARCH_LOONGARCH64)
|
||||
macro(perl_generate_asm FILE_IN FILE_OUT)
|
||||
add_custom_command(OUTPUT ${FILE_OUT}
|
||||
COMMAND /usr/bin/env perl ${FILE_IN} "linux64" ${FILE_OUT})
|
||||
COMMAND ${CMAKE_COMMAND} -E env "CC=${CMAKE_CXX_COMPILER}" /usr/bin/env perl ${FILE_IN} "linux64" ${FILE_OUT})
|
||||
endmacro()
|
||||
|
||||
perl_generate_asm(${OPENSSL_SOURCE_DIR}/crypto/loongarch64cpuid.pl ${OPENSSL_BINARY_DIR}/crypto/loongarch64cpuid.S)
|
||||
|
Loading…
Reference in New Issue
Block a user