Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
titan
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangzongwu
titan
Commits
768f2cbf
Commit
768f2cbf
authored
May 07, 2019
by
Yi Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding jemalloc and compression macros
Signed-off-by:
Yi Wu
<
yiwu@pingcap.com
>
parent
0e700ad1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
rocksdb_flags.cmake
cmake/rocksdb_flags.cmake
+26
-0
No files found.
cmake/rocksdb_flags.cmake
View file @
768f2cbf
# Generate compile and link flags
# Extracted from rocksdb/CMakeLists.txt
option
(
WITH_JEMALLOC
"build with JeMalloc"
OFF
)
if
(
WITH_JEMALLOC
)
add_definitions
(
-DROCKSDB_JEMALLOC -DJEMALLOC_NO_DEMANGLE
)
endif
()
option
(
WITH_SNAPPY
"build with SNAPPY"
OFF
)
if
(
WITH_SNAPPY
)
add_definitions
(
-DSNAPPY
)
endif
()
option
(
WITH_LZ4
"build with lz4"
OFF
)
if
(
WITH_LZ4
)
add_definitions
(
-DLZ4
)
endif
()
option
(
WITH_ZLIB
"build with zlib"
OFF
)
if
(
WITH_ZLIB
)
add_definitions
(
-DZLIB
)
endif
()
option
(
WITH_ZSTD
"build with zstd"
OFF
)
if
(
WITH_ZSTD
)
add_definitions
(
-DZSTD
)
endif
()
if
(
MSVC
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/Zi /nologo /EHsc /GS /Gd /GR /GF /fp:precise /Zc:wchar_t /Zc:forScope /errorReport:queue"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/FC /d2Zi+ /W4 /wd4127 /wd4800 /wd4996 /wd4351 /wd4100 /wd4204 /wd4324"
)
...
...
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