aboutsummaryrefslogtreecommitdiffstats
path: root/build/conf
diff options
context:
space:
mode:
authorsavichevdm <savichevdm@yandex-team.com>2024-09-16 20:01:11 +0300
committersavichevdm <savichevdm@yandex-team.com>2024-09-16 20:21:28 +0300
commit571ed30daf84e8c684f6ad0b07d7dfc74c951a4f (patch)
tree47a94a18cd188fb033d1a3f1bc0b5a2b40dd1d65 /build/conf
parentae1941f90d70deb5d720833355e93d89f4ae38cc (diff)
downloadydb-571ed30daf84e8c684f6ad0b07d7dfc74c951a4f.tar.gz
add support for wasm32 build
commit_hash:6dcdb0136ebcb1fb5a9e0c785160eabf7625e085
Diffstat (limited to 'build/conf')
-rw-r--r--build/conf/compilers/gnu_compiler.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/conf/compilers/gnu_compiler.conf b/build/conf/compilers/gnu_compiler.conf
index 659c8936e9..9d995a3192 100644
--- a/build/conf/compilers/gnu_compiler.conf
+++ b/build/conf/compilers/gnu_compiler.conf
@@ -75,9 +75,17 @@ when ($ARCH_XTENSA == "yes") {
when ($OS_EMSCRIPTEN == "yes") {
FSTACK=-fno-stack-protector
CFLAGS+=-D__EMSCRIPTEN__
+}
+
+when ($ARCH_WASM64 == "yes") {
CFLAGS+=-D_LIBCPP_HAS_MUSL_LIBC
}
+when ($ARCH_WASM32 == "yes") {
+ CFLAGS+=-D_musl_
+ CFLAGS+=-DEMSCRIPTEN_NOCATCH -fignore-exceptions
+}
+
CFLAGS+=$_C_FLAGS $DEBUG_INFO_FLAGS $_C_FOPTIONS $C_WARNING_OPTS $GCC_PREPROCESSOR_OPTS $USER_CFLAGS $USER_CFLAGS_GLOBAL
CXXFLAGS+=$CFLAGS $_STD_CXX $CXX_WARNING_OPTS $USER_CXXFLAGS $USER_CXXFLAGS_GLOBAL
CONLYFLAGS+=$USER_CONLYFLAGS $USER_CONLYFLAGS_GLOBAL