From f6b7f0018ca5ce604e94cc6cf50ee712bb7e9b27 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Tue, 2 Jun 2020 14:39:27 -0700 Subject: Link binaryen tools against the dylib (#2864) When building the libbinaryen dynamic library, also link the binaryen tools against it. This reduces combined tool size on mac from 76M to 2.8M --- src/asmjs/shared-constants.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/asmjs/shared-constants.cpp') diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp index bc5b9d08f..58742fb1d 100644 --- a/src/asmjs/shared-constants.cpp +++ b/src/asmjs/shared-constants.cpp @@ -101,6 +101,13 @@ cashew::IString WASM_I64_UDIV("__wasm_i64_udiv"); cashew::IString WASM_I64_SREM("__wasm_i64_srem"); cashew::IString WASM_I64_UREM("__wasm_i64_urem"); +cashew::IString ASM_FUNC("asmFunc"); +cashew::IString ABORT_FUNC("abort"); +cashew::IString FUNCTION_TABLE("FUNCTION_TABLE"); +cashew::IString NO_RESULT("wasm2js$noresult"); // no result at all +// result in an expression, no temp var +cashew::IString EXPRESSION_RESULT("wasm2js$expresult"); + namespace ABI { namespace wasm2js { -- cgit v1.2.3