diff options
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 820e78366..c7b45da0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,9 @@ option(BYN_ENABLE_ASSERTIONS "Enable assertions" ON) # Turn this off to avoid the dependency on gtest. option(BUILD_TESTS "Build GTest-based tests" ON) +# Turn this off to build only the library. +option(BUILD_TOOLS "Build tools" ON) + # Turn this on to build binaryen.js as ES5, with additional compatibility configuration for js_of_ocaml. option(JS_OF_OCAML "Build binaryen.js for js_of_ocaml" OFF) @@ -318,7 +321,12 @@ add_subdirectory(src/emscripten-optimizer) add_subdirectory(src/passes) add_subdirectory(src/support) add_subdirectory(src/wasm) -add_subdirectory(src/tools) + +if(BUILD_TOOLS) + # Build binaryen tools + add_subdirectory(src/tools) +endif() + add_subdirectory(third_party) # Configure lit tests |