Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add BOOST_DISABLE_ASSERTS and BOOST_EXCEPTION_DISABLE when compiling
Browse files Browse the repository at this point in the history
contracts to prevent the inclusion of local build system paths.
Fixes #3824
  • Loading branch information
elmato committed Jun 5, 2018
1 parent a97a49a commit 5f6842a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeModules/wasm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
1 change: 1 addition & 0 deletions tools/eosiocpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 5f6842a

Please sign in to comment.