Skip to content

Discrepancy between CMake toolchain file and emcmake #16382

Open
@mmarczell-graphisoft

Description

@mmarczell-graphisoft

Why is the --experimental-wasm-threads argument only set in emcmake and not in Emscripten.cmake?

args.append(f'-DCMAKE_CROSSCOMPILING_EMULATOR={node_js};--experimental-wasm-threads')
vs
set(CMAKE_CROSSCOMPILING_EMULATOR "${NODE_JS_EXECUTABLE}" CACHE FILEPATH "Path to the emulator for the target system.")

If it was set in the latter, it would make using emcmake and using just the toolchain file more equivalent.
One usecase for this is VSCode based development, where the editor's CMake plugin runs the CMake 'configure' step automatically whenever CMake files change. A so called "kit" file (link) can specify a toolchain file, but not a wrapper executable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions