Skip to content

Commit 2339a96

Browse files
authored
[NFC][wasm-reduce] Create a tools subdirectory (#7852)
In preparation for refactoring wasm-reduce.cpp into multiple files.
1 parent 21e1f65 commit 2339a96

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ binaryen_add_executable(wasm-dis wasm-dis.cpp)
1717
binaryen_add_executable(wasm-ctor-eval wasm-ctor-eval.cpp)
1818
if(NOT BUILD_EMSCRIPTEN_TOOLS_ONLY)
1919
binaryen_add_executable(wasm-shell wasm-shell.cpp)
20-
binaryen_add_executable(wasm-reduce wasm-reduce.cpp)
2120
binaryen_add_executable(wasm-merge wasm-merge.cpp)
2221
binaryen_add_executable(wasm-fuzz-types "${fuzzing_SOURCES};wasm-fuzz-types.cpp")
2322
binaryen_add_executable(wasm-fuzz-lattices "${fuzzing_SOURCES};wasm-fuzz-lattices.cpp")
23+
add_subdirectory(wasm-reduce)
2424
endif()
2525

2626
add_subdirectory(wasm-split)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FILE(GLOB wasm_reduce_HEADERS *h)
2+
set(wasm_reduce_SOURCES
3+
wasm-reduce.cpp
4+
${wasm_reduce_HEADERS}
5+
)
6+
binaryen_add_executable(wasm-reduce "${wasm_reduce_SOURCES}")

src/tools/wasm-reduce.cpp renamed to src/tools/wasm-reduce/wasm-reduce.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "support/hash.h"
4040
#include "support/path.h"
4141
#include "support/timing.h"
42-
#include "tool-options.h"
42+
#include "tools/tool-options.h"
4343
#include "wasm-builder.h"
4444
#include "wasm-io.h"
4545
#include "wasm-validator.h"

0 commit comments

Comments
 (0)