Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 0247ed2

Browse files
authored
Enable optimizer in aleth-interpreter (#5678)
Enable optimizer in aleth-interpreter
2 parents 7fcf5e9 + 6750fd5 commit 0247ed2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- Changed: [#5628](https://github.com/ethereum/aleth/pull/5628) Don't try to endlessly reconnect to official Ethereum bootnodes.
2626
- Changed: [#5632](https://github.com/ethereum/aleth/pull/5632) RocksDB support is disabled by default. Enable with `-DROCKSB=ON` CMake option.
2727
- Changed: [#5648](https://github.com/ethereum/aleth/pull/5648) `BlockChainTests` suite is split into `BlockChainTests/ValidBlocks` and `BlockChainTests/InvalidBlocks`.
28+
- Changed: [#5678](https://github.com/ethereum/aleth/pull/5678) Enable optimizer in aleth-interpreter by default.
2829
- Removed: [#5631](https://github.com/ethereum/aleth/pull/5631) Removed PARANOID build option.
2930
- Fixed: [#5562](https://github.com/ethereum/aleth/pull/5562) Don't send header request messages to peers that haven't sent us Status yet.
3031
- Fixed: [#5581](https://github.com/ethereum/aleth/pull/5581) Fixed finding neighbour nodes in Discovery.

libaleth-interpreter/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ set(
2424
add_library(aleth-interpreter STATIC ${sources})
2525
target_link_libraries(aleth-interpreter PRIVATE ${dependencies})
2626

27+
if(EVM_OPTIMIZE)
28+
target_compile_definitions(aleth-interpreter PRIVATE EVM_OPTIMIZE)
29+
endif()
30+
2731
if(ALETH_INTERPRETER_SHARED)
2832
# Build aleth-interpreter additionally as a shared library to include it in the package
2933
add_library(aleth-interpreter-shared SHARED ${sources})
@@ -34,6 +38,9 @@ if(ALETH_INTERPRETER_SHARED)
3438
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
3539
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
3640
)
41+
if(EVM_OPTIMIZE)
42+
target_compile_definitions(aleth-interpreter-shared PRIVATE EVM_OPTIMIZE)
43+
endif()
3744
endif()
3845

3946
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)

0 commit comments

Comments
 (0)