Skip to content

Commit d1586d8

Browse files
committed
In SGX mode, disable WASI during the SPEC TEST
1 parent af7d1bc commit d1586d8

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
/.idea
55
**/cmake-build-*/
66
**/*build/
7+
*.obj
8+
*.a
9+
*.so
10+
711
core/deps/**
812
core/shared/mem-alloc/tlsf
913
core/app-framework/wgl
@@ -12,6 +16,9 @@ wamr-sdk/out/
1216
wamr-sdk/runtime/build_runtime_sdk/
1317
test-tools/host-tool/bin/
1418
product-mini/app-samples/hello-world/test.wasm
19+
product-mini/platforms/linux-sgx/enclave-sample/App/
20+
product-mini/platforms/linux-sgx/enclave-sample/Enclave/
21+
product-mini/platforms/linux-sgx/enclave-sample/iwasm
1522

1623
build_out
1724
tests/wamr-test-suites/workspace

core/iwasm/common/wasm_runtime_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ wasm_runtime_get_function_type(const WASMFunctionInstanceCommon *function,
11831183
}
11841184

11851185
WASMFunctionInstanceCommon *
1186-
wasm_runtime_lookup_function(WASMModuleInstanceCommon *const module_inst,
1186+
wasm_runtime_lookup_function(WASMModuleInstanceCommon *module_inst,
11871187
const char *name, const char *signature)
11881188
{
11891189
#if WASM_ENABLE_INTERP != 0

core/iwasm/common/wasm_runtime_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ wasm_runtime_deinstantiate(WASMModuleInstanceCommon *module_inst);
447447

448448
/* See wasm_export.h for description */
449449
WASM_RUNTIME_API_EXTERN WASMFunctionInstanceCommon *
450-
wasm_runtime_lookup_function(WASMModuleInstanceCommon *const module_inst,
450+
wasm_runtime_lookup_function(WASMModuleInstanceCommon *module_inst,
451451
const char *name, const char *signature);
452452

453453
/* Internal API */

core/iwasm/include/wasm_export.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ wasm_runtime_lookup_wasi_start_function(wasm_module_inst_t module_inst);
395395
* @return the function instance found, NULL if not found
396396
*/
397397
WASM_RUNTIME_API_EXTERN wasm_function_inst_t
398-
wasm_runtime_lookup_function(wasm_module_inst_t const module_inst,
398+
wasm_runtime_lookup_function(wasm_module_inst_t module_inst,
399399
const char *name, const char *signature);
400400

401401
/**

product-mini/platforms/linux-sgx/enclave-sample/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ Enclave_Include_Paths := -IEnclave -I$(WAMR_ROOT)/core/iwasm/include \
102102
Enclave_C_Flags := $(SGX_COMMON_CFLAGS) -nostdinc -fvisibility=hidden -fpie -fstack-protector $(Enclave_Include_Paths)
103103
ifeq ($(SPEC_TEST), 1)
104104
Enclave_C_Flags += -DWASM_ENABLE_SPEC_TEST=1
105+
Enclave_C_Flags += -DSGX_DISABLE_WASI
105106
else
106107
Enclave_C_Flags += -DWASM_ENABLE_SPEC_TEST=0
107108
endif

0 commit comments

Comments
 (0)