8000 enable link-time optimization (LTO) for rocksdb library (#15082) · open-bigdata/arangodb@ca0eae2 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca0eae2

Browse files
authored
enable link-time optimization (LTO) for rocksdb library (arangodb#15082)
* enable link-time optimization (LTO) for rocksdb library * use IPO_ENABLED from top-level CMakeLists.txt
1 parent 8ad644b commit ca0eae2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

3rdParty/rocksdb/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ set(ARANGO_ROCKSDB_VERSION "${ARANGO_ROCKSDB_VERSION}" PARENT_SCOPE)
1616
add_definitions("-DNROCKSDB_THREAD_STATUS")
1717
add_definitions("-DROCKSDB_SUPPORT_THREAD_LOCAL")
1818

19+
# IPO_ENABLED is set by the top-level CMakeLists.txt file
20+
if (IPO_ENABLED)
21+
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION True)
22+
endif()
23+
1924
# jemalloc settings
2025
if (USE_JEMALLOC)
2126
if (WIN32)

0 commit comments

Comments
 (0)
0