Skip to content

Commit 1c0a82b

Browse files
vchigrinKamil Khamitov
authored andcommitted
feat envoy: Force building WASM in standalone mode.
Without this define some third-party libraries, e.g. absl, use EM_JS macro to generate code, that requires JS runtime from WASM host. With current build configuration it results in unresolved imports in produced .wasm file. commit_hash:8d2848009f642a5a487b72fdfcda0f1eaba91b2f
1 parent 6d72445 commit 1c0a82b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/conf/compilers/gnu_compiler.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ when ($ARCH_XTENSA == "yes") {
9999
when ($OS_EMSCRIPTEN == "yes") {
100100
FSTACK=-fno-stack-protector
101101
CFLAGS+=-D__EMSCRIPTEN__
102+
CFLAGS+=-DSTANDALONE_WASM=1
102103
}
103104

104105
CFLAGS+=$_C_FLAGS $DEBUG_INFO_FLAGS $_C_FOPTIONS $C_WARNING_OPTS $GCC_PREPROCESSOR_OPTS $USER_CFLAGS $USER_CFLAGS_GLOBAL

0 commit comments

Comments
 (0)