Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ IF(BUILD_STATIC_LIB)
ELSE()
ADD_LIBRARY(binaryen SHARED ${binaryen_SOURCES})
ENDIF()
TARGET_LINK_LIBRARIES(binaryen passes wasm asmjs emscripten-optimizer ir cfg support)
TARGET_LINK_LIBRARIES(binaryen PRIVATE passes wasm asmjs emscripten-optimizer ir cfg support)
INSTALL(TARGETS binaryen DESTINATION ${CMAKE_INSTALL_LIBDIR})

INSTALL(FILES src/binaryen-c.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
Expand Down
2 changes: 1 addition & 1 deletion src/asmjs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ SET(asmjs_SOURCES
asmangle.cpp
shared-constants.cpp
)
ADD_LIBRARY(asmjs STATIC ${asmjs_SOURCES})
ADD_LIBRARY(asmjs OBJECT ${asmjs_SOURCES})
2 changes: 1 addition & 1 deletion src/cfg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SET(cfg_SOURCES
Relooper.cpp
)
ADD_LIBRARY(cfg STATIC ${cfg_SOURCES})
ADD_LIBRARY(cfg OBJECT ${cfg_SOURCES})
2 changes: 1 addition & 1 deletion src/emscripten-optimizer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ SET(emscripten-optimizer_SOURCES
parser.cpp
simple_ast.cpp
)
ADD_LIBRARY(emscripten-optimizer STATIC ${emscripten-optimizer_SOURCES})
ADD_LIBRARY(emscripten-optimizer OBJECT ${emscripten-optimizer_SOURCES})
2 changes: 1 addition & 1 deletion src/ir/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ SET(ir_SOURCES
LocalGraph.cpp
ReFinalize.cpp
)
ADD_LIBRARY(ir STATIC ${ir_SOURCES})
ADD_LIBRARY(ir OBJECT ${ir_SOURCES})
2 changes: 1 addition & 1 deletion src/passes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ SET(passes_SOURCES
Vacuum.cpp
${CMAKE_CURRENT_BINARY_DIR}/WasmIntrinsics.cpp
)
ADD_LIBRARY(passes STATIC ${passes_SOURCES})
ADD_LIBRARY(passes OBJECT ${passes_SOURCES})
2 changes: 1 addition & 1 deletion src/support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ SET(support_SOURCES
safe_integer.cpp
threads.cpp
)
ADD_LIBRARY(support STATIC ${support_SOURCES})
ADD_LIBRARY(support OBJECT ${support_SOURCES})
TARGET_LINK_LIBRARIES(support ${CMAKE_THREAD_LIBS_INIT})
2 changes: 1 addition & 1 deletion src/wasm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ SET(wasm_SOURCES
wasm-type.cpp
wasm-validator.cpp
)
ADD_LIBRARY(wasm STATIC ${wasm_SOURCES})
ADD_LIBRARY(wasm OBJECT ${wasm_SOURCES})