From ae9388de97c8f54cd95a768bdfce813fd9a97839 Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Mon, 7 May 2018 10:29:20 -0400 Subject: [PATCH] rename Assemble to eosio-wast2wasm and install it --- libraries/wasm-jit/Source/Programs/Assemble.cpp | 2 +- libraries/wasm-jit/Source/Programs/CMakeLists.txt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libraries/wasm-jit/Source/Programs/Assemble.cpp b/libraries/wasm-jit/Source/Programs/Assemble.cpp index 60ca42cf0f9..a3328794ddd 100644 --- a/libraries/wasm-jit/Source/Programs/Assemble.cpp +++ b/libraries/wasm-jit/Source/Programs/Assemble.cpp @@ -7,7 +7,7 @@ int commandMain(int argc,char** argv) { if(argc < 3) { - std::cerr << "Usage: Assemble in.wast out.wasm [switches]" << std::endl; + std::cerr << "Usage: eosio-wast2wasm in.wast out.wasm [switches]" << std::endl; std::cerr << " -n|--omit-names\t\tOmits WAST function and local names from the output" << std::endl; return EXIT_FAILURE; } diff --git a/libraries/wasm-jit/Source/Programs/CMakeLists.txt b/libraries/wasm-jit/Source/Programs/CMakeLists.txt index 260f4c1092c..27a3aa427b4 100644 --- a/libraries/wasm-jit/Source/Programs/CMakeLists.txt +++ b/libraries/wasm-jit/Source/Programs/CMakeLists.txt @@ -1,6 +1,7 @@ -add_executable(Assemble Assemble.cpp CLI.h) -target_link_libraries(Assemble Logging IR WAST WASM) -set_target_properties(Assemble PROPERTIES FOLDER Programs) +add_executable(eosio-wast2wasm Assemble.cpp CLI.h) +target_link_libraries(eosio-wast2wasm Logging IR WAST WASM) +set_target_properties(eosio-wast2wasm PROPERTIES FOLDER Programs) +INSTALL(TARGETS eosio-wast2wasm DESTINATION ${CMAKE_INSTALL_BINDIR}) add_executable(Disassemble Disassemble.cpp CLI.h) target_link_libraries(Disassemble Logging IR WAST WASM)