Skip to content

Can't build with ccache emscripten #148557

@clementperon

Description

@clementperon

Bug report

Bug description:

In the Emscripten build, Python generates Python/emscripten_trampoline_inner.wasm with a rule in Makefile.pre.in that derives clang from $(CC) as if CC were a single executable path.

Current rule:

$$(dirname $$(dirname $(CC)))/bin/clang ...
This fails when CC contains a wrapper, for example:

CC="ccache /path/to/emcc"
because dirname is given multiple arguments and the shell command becomes invalid.

CPython versions tested on:

3.14

Operating systems tested on:

Other, macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-emscriptenbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions