diff options
author | Immanuel Haffner <haffner.immanuel@gmail.com> | 2019-11-22 22:48:46 +0100 |
---|---|---|
committer | Alon Zakai <azakai@google.com> | 2019-11-22 13:48:46 -0800 |
commit | bf8f36c31c0b8e6213bce840be66937dd6d0f6af (patch) | |
tree | 33643f2479e22c5a653f85029bd8dff1ea16d551 /src/emscripten-optimizer | |
parent | e2587f30827cd3d35dd409c2958b25a6c5517092 (diff) | |
download | binaryen-bf8f36c31c0b8e6213bce840be66937dd6d0f6af.tar.gz binaryen-bf8f36c31c0b8e6213bce840be66937dd6d0f6af.tar.bz2 binaryen-bf8f36c31c0b8e6213bce840be66937dd6d0f6af.zip |
Build libbinaryen as a monolithic statically/shared library (#2463)
* Transform libraries created in subdirectories from statically linked
libraries to CMake object libraries.
* Link object libraries as `PRIVATE` to `libbinaryen`.
According to CMake documentation: "Libraries and targets following
PRIVATE are linked to, but are not made part of the link interface."
This is exactly what we want, as we only want the C API to be part of
the interface.
Diffstat (limited to 'src/emscripten-optimizer')
-rw-r--r-- | src/emscripten-optimizer/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emscripten-optimizer/CMakeLists.txt b/src/emscripten-optimizer/CMakeLists.txt index 6c302b991..a2bb7d802 100644 --- a/src/emscripten-optimizer/CMakeLists.txt +++ b/src/emscripten-optimizer/CMakeLists.txt @@ -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}) |