Skip to content

Hitting into compilation issue in windows when emsdk and emcache are in different drives. #25463

@shinji-TH

Description

@shinji-TH

Hi,
May I check if there are any specific reason for using the resolve function in

cachedir = Path(config.CACHE).resolve()

Reason for ask is I'm hitting into the follow error while compiling my project

2025-10-02 02:07:54 ValueError: path is on mount 'U:', start on mount 'D:'

This was due to my emsdk resides under U:/ and em_cache folder(actual) reside under D:/
However I have set shortcut (symbolic links) under U:/refs/em_cache/ via the EM_CACHE environment.
However it seems the resolve function return actual path instead of symbolic links path instead.
Hence wanted to check if it is okay for us to set the cache via (symbolic links)

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