Skip to content

Commit 727d3cb

Browse files
authored
Merge pull request #515 from ewasm/wabt-default
Make wabt the default engine
2 parents 252cb4e + 1694d90 commit 727d3cb

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ if(HERA_FUZZING)
4848
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${fuzzer_flags}")
4949
endif()
5050

51-
option(HERA_BINARYEN "Build with binaryen" ON)
51+
option(HERA_BINARYEN "Build with binaryen" OFF)
5252
if (HERA_BINARYEN)
5353
include(ProjectBinaryen)
5454
endif()
5555

56-
option(HERA_WABT "Build with wabt" OFF)
56+
option(HERA_WABT "Build with wabt" ON)
5757
if (HERA_WABT)
5858
include(ProjectWabt)
5959
endif()

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ Please also check the build options listed in the following section.
3535
- `-DHERA_DEBUGGING=ON` will turn on debugging features and messages
3636
- `-DBUILD_SHARED_LIBS=ON` is a standard CMake option to build libraries as shared. This will build Hera shared library that can be then dynamically loaded by EVMC compatible Clients (e.g. `aleth` from [aleth]). **This is the preferred way of compilation.**
3737

38-
### Binaryen support
38+
### wabt support
3939

4040
*Complete support.*
4141

42-
[Binaryen] is built by default and needs no build options. It can be disabled with:
42+
[wabt] is built by default and needs no build options. It can be disabled with:
4343

44-
- `-DHERA_BINARYEN=OFF`
44+
- `-DHERA_WABT=OFF`
4545

46-
### wabt support
46+
### Binaryen support
4747

4848
*Complete support.*
4949

50-
[wabt] support needs to be enabled via the following build option and requested at runtime with `engine=wabt`:
50+
[Binaryen] support needs to be enabled via the following build option and requested at runtime with `engine=binaryen`:
5151

52-
- `-DHERA_WABT=ON` will request the compilation of wabt support
52+
- `-DHERA_BINARYEN=ON` will request the compilation of Binaryen support
5353

5454
### WAVM support
5555

circle.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
CC: clang
192192
GENERATOR: Ninja
193193
BUILD_PARALLEL_JOBS: 4
194-
CMAKE_OPTIONS: -DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=OFF -DHERA_WAVM=ON -DHERA_WABT=ON -DEVMC_TESTING=ON
194+
CMAKE_OPTIONS: -DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=OFF -DHERA_BINARYEN=ON -DHERA_WAVM=ON -DHERA_WABT=ON -DEVMC_TESTING=ON
195195
docker:
196196
- image: ethereum/cpp-build-env:9
197197
steps:
@@ -219,7 +219,7 @@ jobs:
219219
CC: clang
220220
GENERATOR: Ninja
221221
BUILD_PARALLEL_JOBS: 4
222-
CMAKE_OPTIONS: -DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=OFF -DHERA_WAVM=ON -DHERA_WABT=ON -DEVMC_TESTING=ON -DSANITIZE=address
222+
CMAKE_OPTIONS: -DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=OFF -DHERA_BINARYEN=ON -DHERA_WAVM=ON -DHERA_WABT=ON -DEVMC_TESTING=ON -DSANITIZE=address
223223
# The ASan must the first loaded shared library. Force preloading it with this flag.
224224
PRELOAD_ASAN: true
225225
docker:
@@ -248,7 +248,7 @@ jobs:
248248
- CC: gcc
249249
- GENERATOR: Ninja
250250
- BUILD_PARALLEL_JOBS: 4
251-
- CMAKE_OPTIONS: -DCOVERAGE=ON -DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=ON
251+
- CMAKE_OPTIONS: -DCOVERAGE=ON -DBUILD_SHARED_LIBS=ON -DHERA_DEBUGGING=ON -DHERA_BINARYEN=ON
252252
docker:
253253
- image: ethereum/cpp-build-env:9
254254
steps:
@@ -272,7 +272,7 @@ jobs:
272272
- CC: gcc
273273
- GENERATOR: Unix Makefiles
274274
- BUILD_PARALLEL_JOBS: 4
275-
- CMAKE_OPTIONS: -DBUILD_SHARED_LIBS=OFF -DHERA_DEBUGGING=ON -DHERA_WAVM=ON -DHERA_WABT=ON
275+
- CMAKE_OPTIONS: -DBUILD_SHARED_LIBS=OFF -DHERA_DEBUGGING=ON -DHERA_BINARYEN=ON -DHERA_WAVM=ON -DHERA_WABT=ON
276276
docker:
277277
- image: ethereum/cpp-build-env:9
278278
steps:
@@ -291,7 +291,7 @@ jobs:
291291
- CXX: c++
292292
- GENERATOR: Unix Makefiles
293293
- BUILD_PARALLEL_JOBS: 4
294-
- CMAKE_OPTIONS: -DHERA_DEBUGGING=ON -DHERA_WABT=ON
294+
- CMAKE_OPTIONS: -DHERA_DEBUGGING=ON -DHERA_BINARYEN=ON -DHERA_WABT=ON
295295
macos:
296296
xcode: "10.1.0"
297297
steps:

0 commit comments

Comments
 (0)