Skip to content

Command::new() doesn't expand %dp0 correctly in nightly #43273

Closed
@vvanders

Description

@vvanders

Currently the GCC crate fails to build with emscripten on nightly due to issues running the emcc.bat in emscripten:

@echo off
python "%~dp0\emcc" %*

Logging %~dp0 in nightly shows it pointing to the current directory of the crate while in stable it points to the path of the batch file(Ex: C:\Program Files\Emscripten\emscripten\incoming).

Tested between

nightly-x86_64-pc-windows-msvc unchanged - rustc 1.20.0-nightly (086eaa7 2017-07-15)

and

stable-x86_64-pc-windows-msvc unchanged - rustc 1.18.0 (03fc9d6 2017-06-06)

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