diff --git a/CMakeModules/wasm.cmake b/CMakeModules/wasm.cmake index c33e6a69592..f90829ce141 100644 --- a/CMakeModules/wasm.cmake +++ b/CMakeModules/wasm.cmake @@ -54,7 +54,7 @@ macro(compile_wast) endif() set(WASM_COMMAND ${WASM_CLANG} -emit-llvm -O3 ${STDFLAG} --target=wasm32 -ffreestanding - -nostdlib -nostdlibinc -fno-threadsafe-statics -fno-rtti -fno-exceptions + -nostdlib -nostdlibinc -DBOOST_DISABLE_ASSERTS -DBOOST_EXCEPTION_DISABLE -fno-threadsafe-statics -fno-rtti -fno-exceptions -c ${infile} -o ${outfile}.bc ) if (${ARG_NOWARNINGS}) diff --git a/tools/eosiocpp.in b/tools/eosiocpp.in index 4dad00491fa..380060c87f9 100755 --- a/tools/eosiocpp.in +++ b/tools/eosiocpp.in @@ -40,6 +40,7 @@ function build_contract { filePath=`dirname $file` ($PRINT_CMDS; @WASM_CLANG@ -emit-llvm -O3 --std=c++14 --target=wasm32 -nostdinc \ + -DBOOST_DISABLE_ASSERTS -DBOOST_EXCEPTION_DISABLE \ -nostdlib -nostdlibinc -ffreestanding -nostdlib -fno-threadsafe-statics -fno-rtti \ -fno-exceptions -I ${EOSIO_INSTALL_DIR}/include \ -I${EOSIO_INSTALL_DIR}/include/libc++/upstream/include \