Skip to content

Build::expand() prints the filename as a warning on windows #896

@dimbleby

Description

@dimbleby
> cargo c
warning: expando.c
    Finished dev [unoptimized + debuginfo] target(s) in 0.10s

presumably because cl.exe likes to print the filename, I guess to stderr, eg

> "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "c-ares/include/" "-W4" "-E" "build/expando.c"
expando.c
#line 1 "build/expando.c"
#line 1 "C:\\Users\\dch\\rust-c-ares\\c-ares-sys\\c-ares\\include\\ares_version.h"
...

and then cc-rs presents that as a warnng.

Just a minor annoyance I guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsWindows targets and toolchains

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions