Skip to content

Conversation

@mannewalis
Copy link

…ssages

Issue 1: False positive Emscripten detection

The check_c_source_compiles() test incorrectly detected Emscripten when building with non-Emscripten WASM toolchains (e.g., WASI SDK). In cross- compilation scenarios, CMake creates a static library instead of an executable for compile tests. An empty source file (when EMSCRIPTEN is not defined) successfully archives into a static library, causing the test to pass when it should fail.

Resolution: Use the EMSCRIPTEN CMake variable set by Emscripten's official toolchain file, which is the recommended detection method. Remove the unreliable check_c_source_compiles() fallback.

Issue 2: Unsuppressible status messages

The message() calls lacked a type argument, making them always print regardless of CMake's log level settings.

Resolution: Add STATUS type to message() calls so they can be suppressed with CMake's --log-level option.

…ssages

Issue 1: False positive Emscripten detection

The check_c_source_compiles() test incorrectly detected Emscripten when
building with non-Emscripten WASM toolchains (e.g., WASI SDK). In cross-
compilation scenarios, CMake creates a static library instead of an
executable for compile tests. An empty source file (when __EMSCRIPTEN__
is not defined) successfully archives into a static library, causing the
test to pass when it should fail.

Resolution: Use the EMSCRIPTEN CMake variable set by Emscripten's official
toolchain file, which is the recommended detection method. Remove the
unreliable check_c_source_compiles() fallback.

Issue 2: Unsuppressible status messages

The message() calls lacked a type argument, making them always print
regardless of CMake's log level settings.

Resolution: Add STATUS type to message() calls so they can be suppressed
with CMake's --log-level option.
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.

1 participant