Skip to content

Can not use cc in projects located at a path with a space in it on Windows (using msvc) #348

Closed
@tinco

Description

@tinco

I found this bug whilst trying to compile rustlang/rust on Windows. It crashes because something goes wrong with the prefix for the include directories. In cc-rs it crashes with a slightly different error:

NMAKE : fatal error U1071: cycle in dependency tree for target 'C:\source\a'

This is easily reproduced like so:

cd ..
md -Path "a a"
mv cc-rs "a a"
cd "a a/cc-rs/cc-test"
cargo build

I tried to make a test for this, but I failed, apparently it's not a bug in the way the .include() method works as including paths with a space in it works fine. It must have to do something with the way the project prefix is made or used.

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