Skip to content

Make clang's --sysroot argument equivalent to clang-cl's /winsysroot argument on Windows targets #54868

@godvino

Description

@godvino

Right now clang's --sysroot argument doesnt do anything on Windows targets. I am cross compiling Windows applications from Linux (using Windows headers and libraries downloaded using xwin) and having to use a bunch of -I and -L flags isn't ideal. clang-cl's /winsysroot argument helps to reduce the number of arguments that should be passed while cross compiling but using clang-cl isn't ideal on non Windows systems partly because of its Windows-style arguments. It would be nice if clang's --sysroot argument became equivalent to the /winsysroot argument of clang-cl when target is set to Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-cl`clang-cl` driver. Don't use for other compiler partsclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions