diff options
author | vchigrin <vchigrin@yandex-team.com> | 2025-02-27 10:31:47 +0300 |
---|---|---|
committer | vchigrin <vchigrin@yandex-team.com> | 2025-02-27 11:02:51 +0300 |
commit | aefc2eab1a4302c2990d43d3e5d3053b667d75fc (patch) | |
tree | 4a02a4217a59fd7dad3ea11b55799d1ddbf5429f /build | |
parent | 9e80b85daf561409cf07a1a77f23545006cdbe16 (diff) | |
download | ydb-aefc2eab1a4302c2990d43d3e5d3053b667d75fc.tar.gz |
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
Diffstat (limited to 'build')
-rw-r--r-- | build/conf/compilers/gnu_compiler.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build/conf/compilers/gnu_compiler.conf b/build/conf/compilers/gnu_compiler.conf index a333438668..1c0b9df04d 100644 --- a/build/conf/compilers/gnu_compiler.conf +++ b/build/conf/compilers/gnu_compiler.conf @@ -99,6 +99,7 @@ when ($ARCH_XTENSA == "yes") { when ($OS_EMSCRIPTEN == "yes") { FSTACK=-fno-stack-protector CFLAGS+=-D__EMSCRIPTEN__ + CFLAGS+=-DSTANDALONE_WASM=1 } CFLAGS+=$_C_FLAGS $DEBUG_INFO_FLAGS $_C_FOPTIONS $C_WARNING_OPTS $GCC_PREPROCESSOR_OPTS $USER_CFLAGS $USER_CFLAGS_GLOBAL |