Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
35522455
Commit
35522455
authored
Nov 22, 2018
by
Daniel Black
Committed by
Sergei Petrunia
May 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RocksDB: use crc32c optimised version for POWER
parent
bff9b802
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
storage/rocksdb/build_rocksdb.cmake
storage/rocksdb/build_rocksdb.cmake
+25
-0
No files found.
storage/rocksdb/build_rocksdb.cmake
View file @
35522455
...
...
@@ -112,6 +112,24 @@ if(NOT WIN32)
add_definitions
(
-DROCKSDB_PLATFORM_POSIX -DROCKSDB_LIB_IO_POSIX
)
endif
()
include
(
CheckCCompilerFlag
)
# ppc64 or ppc64le
if
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64"
)
CHECK_C_COMPILER_FLAG
(
"-maltivec"
HAS_ALTIVEC
)
if
(
HAS_ALTIVEC
)
message
(
STATUS
" HAS_ALTIVEC yes"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-maltivec"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-maltivec"
)
endif
(
HAS_ALTIVEC
)
if
(
NOT CMAKE_C_FLAGS MATCHES
"m(cpu|tune)"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-mcpu=power8"
)
endif
()
if
(
NOT CMAKE_CXX_FLAGS MATCHES
"m(cpu|tune)"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-mcpu=power8"
)
endif
()
ADD_DEFINITIONS
(
-DHAVE_POWER8 -DHAS_ALTIVEC
)
endif
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64"
)
option
(
WITH_FALLOCATE
"build with fallocate"
ON
)
if
(
WITH_FALLOCATE AND UNIX
)
...
...
@@ -377,6 +395,13 @@ else()
port/port_posix.cc
env/env_posix.cc
env/io_posix.cc
)
# ppc64 or ppc64le
if
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64"
)
enable_language
(
ASM
)
list
(
APPEND ROCKSDB_SOURCES
util/crc32c_ppc.c
util/crc32c_ppc_asm.S
)
endif
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64"
)
endif
()
SET
(
SOURCES
)
FOREACH
(
s
${
ROCKSDB_SOURCES
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment