Skip to content

Set BUILD_STATIC_LIB under emscripten#8762

Open
sbc100 wants to merge 1 commit into
mainfrom
emscripten_static
Open

Set BUILD_STATIC_LIB under emscripten#8762
sbc100 wants to merge 1 commit into
mainfrom
emscripten_static

Conversation

@sbc100
Copy link
Copy Markdown
Member

@sbc100 sbc100 commented May 22, 2026

This fixes the following warning when building with emscripten:

CMake Warning (dev) at CMakeLists.txt:460 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
This warning is for project developers.  Use -Wno-dev to suppress it.

@sbc100 sbc100 requested a review from a team as a code owner May 22, 2026 16:27
@sbc100 sbc100 requested review from aheejin and removed request for a team May 22, 2026 16:27
@kripken
Copy link
Copy Markdown
Member

kripken commented May 22, 2026

@sbc100 sbc100 force-pushed the emscripten_static branch from 892fb9e to d8b2db5 Compare May 22, 2026 16:32
This fixes the following warning when building with emscripten:

```
CMake Warning (dev) at CMakeLists.txt:460 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
This warning is for project developers.  Use -Wno-dev to suppress it.
```
@sbc100 sbc100 force-pushed the emscripten_static branch from d8b2db5 to db324b1 Compare May 22, 2026 16:41
@sbc100
Copy link
Copy Markdown
Member Author

sbc100 commented May 22, 2026

Is this just a warning? On CI we see a fatal error:

https://logs.chromium.org/logs/emscripten-releases/buildbucket/cr-buildbucket/8681154544091254737/+/u/BinaryenJS_tests/stdout

The warning I'm referring too is the one that we will have been seeing basically forever, and the warning I quoted above.

The error you are seeing is different and that happens when you try to build a binaryen_js against a share version of libbinaryen.

This change happens to fix both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants