Skip to content

Commit

Permalink
[cmake] Remove redundant binaryen_emscripten_SOURCES (#6602)
Browse files Browse the repository at this point in the history
This list is identical to `binaryen_SOURCES` above.
  • Loading branch information
sbc100 committed May 17, 2024
1 parent 669bc06 commit f4a83dd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -466,14 +466,9 @@ endif()
# Note that SHELL: is needed as otherwise cmake will coalesce -s link flags
# in an incorrect way for emscripten.
if(EMSCRIPTEN)
set(binaryen_emscripten_SOURCES
src/binaryen-c.cpp
${binaryen_HEADERS}
)

# binaryen.js WebAssembly variant
add_executable(binaryen_wasm
${binaryen_emscripten_SOURCES})
${binaryen_SOURCES})
target_link_libraries(binaryen_wasm wasm asmjs emscripten-optimizer passes ir cfg support analysis parser wasm)
target_link_libraries(binaryen_wasm "-sFILESYSTEM")
target_link_libraries(binaryen_wasm "-sEXPORT_NAME=Binaryen")
Expand All @@ -498,7 +493,7 @@ if(EMSCRIPTEN)

# binaryen.js JavaScript variant
add_executable(binaryen_js
${binaryen_emscripten_SOURCES})
${binaryen_SOURCES})
target_link_libraries(binaryen_js wasm asmjs emscripten-optimizer passes ir cfg support analysis parser wasm)
target_link_libraries(binaryen_js "-sWASM=0")
target_link_libraries(binaryen_js "-sWASM_ASYNC_COMPILATION=0")
Expand Down

0 comments on commit f4a83dd

Please sign in to comment.