Skip to content

[wasm32-emscripten] Emscripten node build is not portable to windows #96509

@rchiodo

Description

@rchiodo

Bug report

Emscripten-node builds should be portable to other platforms. Copying an emscripten-build to a windows machine throws an error on startup:

Exception ignored error evaluating path:
Traceback (most recent call last):
  File "<frozen getpath>", line 268, in <module>
OSError: failed to make path absolute
Fatal Python error: error evaluating path

The root cause I believe is here:

#ifdef MS_WINDOWS

Emscripten builds don't define MS_WINDOWS (and they shouldn't) but the emscripten-node build has to be able to handle running on windows too.

Your environment

  • CPython versions tested on: Emscripten-node-debug build
  • Operating system and architecture: Windows 10 x64

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions