diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-01 13:05:44 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-03 00:03:01 +0200 |
commit | 00d0d3d5ef7df92a69433f5ce825e9cea5871d4a (patch) | |
tree | 1c67f012adafef36545b748ad0524663eb7517d2 /testing/binaryen/link-dynamically.patch | |
parent | 1dd1d741f7debf27cd5ab13c0047fe495dcbe1b1 (diff) | |
download | aports-00d0d3d5ef7df92a69433f5ce825e9cea5871d4a.tar.bz2 aports-00d0d3d5ef7df92a69433f5ce825e9cea5871d4a.tar.xz |
testing/binaryen: new aport
https://github.com/WebAssembly/binaryen
Compiler infrastructure and toolchain library for WebAssembly, in C++
Diffstat (limited to 'testing/binaryen/link-dynamically.patch')
-rw-r--r-- | testing/binaryen/link-dynamically.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/testing/binaryen/link-dynamically.patch b/testing/binaryen/link-dynamically.patch new file mode 100644 index 0000000000..f5945dba3e --- /dev/null +++ b/testing/binaryen/link-dynamically.patch @@ -0,0 +1,70 @@ +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Sat, 3 Apr 2017 00:01:00 +0200 +Subject: [PATCH] Link binaries with libbinaryen dynamically + +Link binaries with libbinaryen.so to significantly reduce their size. +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -137,7 +137,7 @@ + ELSE() + ADD_LIBRARY(binaryen SHARED ${binaryen_SOURCES}) + ENDIF() +-TARGET_LINK_LIBRARIES(binaryen ${all_passes} wasm asmjs ast support) ++TARGET_LINK_LIBRARIES(binaryen ${all_passes} wasm asmjs ast support emscripten-optimizer) + INSTALL(TARGETS binaryen DESTINATION ${CMAKE_INSTALL_LIBDIR}) + + INSTALL(FILES src/binaryen-c.h DESTINATION include) +@@ -151,7 +151,7 @@ + ) + ADD_EXECUTABLE(wasm-shell + ${wasm-shell_SOURCES}) +-TARGET_LINK_LIBRARIES(wasm-shell wasm asmjs emscripten-optimizer ${all_passes} ast support) ++TARGET_LINK_LIBRARIES(wasm-shell binaryen) + SET_PROPERTY(TARGET wasm-shell PROPERTY CXX_STANDARD 11) + SET_PROPERTY(TARGET wasm-shell PROPERTY CXX_STANDARD_REQUIRED ON) + INSTALL(TARGETS wasm-shell DESTINATION ${CMAKE_INSTALL_BINDIR}) +@@ -161,7 +161,7 @@ + ) + ADD_EXECUTABLE(wasm-opt + ${wasm-opt_SOURCES}) +-TARGET_LINK_LIBRARIES(wasm-opt wasm asmjs emscripten-optimizer ${all_passes} ast support) ++TARGET_LINK_LIBRARIES(wasm-opt binaryen) + SET_PROPERTY(TARGET wasm-opt PROPERTY CXX_STANDARD 11) + SET_PROPERTY(TARGET wasm-opt PROPERTY CXX_STANDARD_REQUIRED ON) + INSTALL(TARGETS wasm-opt DESTINATION ${CMAKE_INSTALL_BINDIR}) +@@ -172,7 +172,7 @@ + ) + ADD_EXECUTABLE(asm2wasm + ${asm2wasm_SOURCES}) +-TARGET_LINK_LIBRARIES(asm2wasm emscripten-optimizer ${all_passes} wasm asmjs ast support) ++TARGET_LINK_LIBRARIES(asm2wasm binaryen) + SET_PROPERTY(TARGET asm2wasm PROPERTY CXX_STANDARD 11) + SET_PROPERTY(TARGET asm2wasm PROPERTY CXX_STANDARD_REQUIRED ON) + INSTALL(TARGETS asm2wasm DESTINATION ${CMAKE_INSTALL_BINDIR}) +@@ -184,7 +184,7 @@ + ) + ADD_EXECUTABLE(s2wasm + ${s2wasm_SOURCES}) +-TARGET_LINK_LIBRARIES(s2wasm passes wasm asmjs ast support) ++TARGET_LINK_LIBRARIES(s2wasm binaryen) + SET_PROPERTY(TARGET s2wasm PROPERTY CXX_STANDARD 11) + SET_PROPERTY(TARGET s2wasm PROPERTY CXX_STANDARD_REQUIRED ON) + INSTALL(TARGETS s2wasm DESTINATION ${CMAKE_INSTALL_BINDIR}) +@@ -194,7 +194,7 @@ + ) + ADD_EXECUTABLE(wasm-as + ${wasm_as_SOURCES}) +-TARGET_LINK_LIBRARIES(wasm-as wasm asmjs passes ast support) ++TARGET_LINK_LIBRARIES(wasm-as binaryen) + SET_PROPERTY(TARGET wasm-as PROPERTY CXX_STANDARD 11) + SET_PROPERTY(TARGET wasm-as PROPERTY CXX_STANDARD_REQUIRED ON) + INSTALL(TARGETS wasm-as DESTINATION ${CMAKE_INSTALL_BINDIR}) +@@ -204,7 +204,7 @@ + ) + ADD_EXECUTABLE(wasm-dis + ${wasm_dis_SOURCES}) +-TARGET_LINK_LIBRARIES(wasm-dis passes wasm asmjs ast support) ++TARGET_LINK_LIBRARIES(wasm-dis binaryen) + SET_PROPERTY(TARGET wasm-dis PROPERTY CXX_STANDARD 11) + SET_PROPERTY(TARGET wasm-dis PROPERTY CXX_STANDARD_REQUIRED ON) + INSTALL(TARGETS wasm-dis DESTINATION ${CMAKE_INSTALL_BINDIR}) |