Merge pull request #21842 from taosdata/fix/TD-24910-M

enh: cmake option and librocksdb.a for Loongson mips64
This commit is contained in:
dapan1121 2023-06-26 18:08:19 +08:00 committed by GitHub
commit c8cc0d2feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2852 additions and 0 deletions

View File

@ -121,6 +121,12 @@ IF ("${CPUTYPE}" STREQUAL "")
SET(TD_LOONGARCH_64 TRUE)
ADD_DEFINITIONS("-D_TD_LOONGARCH_")
ADD_DEFINITIONS("-D_TD_LOONGARCH_64")
ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "mips64")
SET(PLATFORM_ARCH_STR "mips")
MESSAGE(STATUS "input cpuType: mips64")
SET(TD_MIPS_64 TRUE)
ADD_DEFINITIONS("-D_TD_MIPS_")
ADD_DEFINITIONS("-D_TD_MIPS_64")
ENDIF ()
ELSE ()
# if generate ARM version:
@ -176,6 +182,8 @@ set(TD_DEPS_DIR "x86")
if (TD_LINUX)
IF (TD_ARM_64 OR TD_ARM_32)
set(TD_DEPS_DIR "arm")
ELSEIF (TD_MIPS_64)
set(TD_DEPS_DIR "mips")
ELSE()
set(TD_DEPS_DIR "x86")
ENDIF()

BIN
deps/mips/rocksdb_static/librocksdb.a vendored Normal file

Binary file not shown.

2844
deps/mips/rocksdb_static/rocksdb/c.h vendored Normal file

File diff suppressed because it is too large Load Diff