Fix configurable bounds checks typo (#2809)
This commit is contained in:
@ -236,10 +236,10 @@ else
|
||||
CFLAGS += -DWASM_ENABLE_LIBC_BUILTIN=0
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_INTERPRETERS_WAMR_CONFIGUABLE_BOUNDS_CHECKS),y)
|
||||
CFLAGS += -DWASM_CONFIGUABLE_BOUNDS_CHECKS=1
|
||||
ifeq ($(CONFIG_INTERPRETERS_WAMR_CONFIGURABLE_BOUNDS_CHECKS),y)
|
||||
CFLAGS += -DWASM_CONFIGURABLE_BOUNDS_CHECKS=1
|
||||
else
|
||||
CFLAGS += -DWASM_CONFIGUABLE_BOUNDS_CHECKS=0
|
||||
CFLAGS += -DWASM_CONFIGURABLE_BOUNDS_CHECKS=0
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_INTERPRETERS_WAMR_LIBC_WASI),y)
|
||||
|
||||
@ -69,7 +69,7 @@ print_help()
|
||||
#endif
|
||||
printf(" --repl Start a very simple REPL (read-eval-print-loop) mode\n"
|
||||
" that runs commands in the form of \"FUNC ARG...\"\n");
|
||||
#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
||||
#if WASM_CONFIGURABLE_BOUNDS_CHECKS != 0
|
||||
printf(" --disable-bounds-checks Disable bounds checks for memory accesses\n");
|
||||
#endif
|
||||
#if WASM_ENABLE_LIBC_WASI != 0
|
||||
@ -571,7 +571,7 @@ main(int argc, char *argv[])
|
||||
#endif
|
||||
bool is_repl_mode = false;
|
||||
bool is_xip_file = false;
|
||||
#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
||||
#if WASM_CONFIGURABLE_BOUNDS_CHECKS != 0
|
||||
bool disable_bounds_checks = false;
|
||||
#endif
|
||||
#if WASM_ENABLE_LIBC_WASI != 0
|
||||
@ -638,7 +638,7 @@ main(int argc, char *argv[])
|
||||
else if (!strcmp(argv[0], "--repl")) {
|
||||
is_repl_mode = true;
|
||||
}
|
||||
#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
||||
#if WASM_CONFIGURABLE_BOUNDS_CHECKS != 0
|
||||
else if (!strcmp(argv[0], "--disable-bounds-checks")) {
|
||||
disable_bounds_checks = true;
|
||||
}
|
||||
@ -886,7 +886,7 @@ main(int argc, char *argv[])
|
||||
goto fail3;
|
||||
}
|
||||
|
||||
#if WASM_CONFIGUABLE_BOUNDS_CHECKS != 0
|
||||
#if WASM_CONFIGURABLE_BOUNDS_CHECKS != 0
|
||||
if (disable_bounds_checks) {
|
||||
wasm_runtime_set_bounds_checks(wasm_module_inst, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user