diff options
author | dtorilov <dtorilov@yandex-team.com> | 2023-07-19 18:04:52 +0300 |
---|---|---|
committer | dtorilov <dtorilov@yandex-team.com> | 2023-07-19 18:04:52 +0300 |
commit | c98261a5002451209d47b09981427aa75a0e6907 (patch) | |
tree | 8190771218d14ea3b2e925efb94f517f3342e30e /build/conf | |
parent | 29ab18afdb3aca70fc943207733eba6959b38392 (diff) | |
download | ydb-c98261a5002451209d47b09981427aa75a0e6907.tar.gz |
Add wasm64-unknown-emscripten target
Diffstat (limited to 'build/conf')
-rw-r--r-- | build/conf/compilers/gnu_compiler.conf | 4 | ||||
-rw-r--r-- | build/conf/linkers/ld.conf | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/build/conf/compilers/gnu_compiler.conf b/build/conf/compilers/gnu_compiler.conf index 97e6f94abc..d6c8165949 100644 --- a/build/conf/compilers/gnu_compiler.conf +++ b/build/conf/compilers/gnu_compiler.conf @@ -52,6 +52,10 @@ when ($ARCH_XTENSA == "yes") { FSTACK= } +when ($OS_EMSCRIPTEN == "yes") { + FSTACK=-fno-stack-protector +} + CFLAGS+=$_C_FLAGS $DEBUG_INFO_FLAGS $_C_FOPTIONS $C_WARNING_OPTS $GCC_PREPROCESSOR_OPTS $USER_CFLAGS $USER_CFLAGS_GLOBAL CXXFLAGS+=$CFLAGS $_CXX_STD $CXX_WARNING_OPTS $USER_CXXFLAGS $USER_CXXFLAGS_GLOBAL CONLYFLAGS+=$USER_CONLYFLAGS $USER_CONLYFLAGS_GLOBAL diff --git a/build/conf/linkers/ld.conf b/build/conf/linkers/ld.conf index c0fea5f0d3..2ec22beff0 100644 --- a/build/conf/linkers/ld.conf +++ b/build/conf/linkers/ld.conf @@ -102,6 +102,9 @@ when ($MUSL == "yes") { _C_SYSTEM_LIBRARIES=-nostdlib } C_SYSTEM_LIBRARIES=$_C_SYSTEM_LIBRARIES +when ($OS_EMSCRIPTEN == "yes") { + C_SYSTEM_LIBRARIES=-nostdlib +} OBJADDE= @@ -156,7 +159,13 @@ _EXE_FLAGS=\ $_LINKER_TIME_TRACE_FLAG _SONAME_FLAG=-Wl,$_SONAME_OPTION,$_SONAME +when ($OS_EMSCRIPTEN == "yes") { + _SONAME_FLAG= +} _SHARED_FLAG=-shared +when ($OS_EMSCRIPTEN == "yes") { + _SHARED_FLAG=-Wl,-shared -Wl,--no-entry -Wl,--export-all -Wl,--import-memory -Wl,--import-undefined +} _EXEC_SHARED_FLAG= when ($OS_LINUX == "yes") { _EXEC_SHARED_FLAG=-pie -fPIE -Wl,--unresolved-symbols=ignore-all -rdynamic |