[Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 27 Feb 2018 02:51:30 +0000 (02:51 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 27 Feb 2018 02:51:30 +0000 (02:51 +0000)
commita49182aa5a94e5254d2235c8d627805ea0c42fd3
treefd1ccf02eea7b52fae0582b0dc7eb651d05245aa
parent8992eddbdf1c831f9e49f256af9f1187be749bc9
[Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows.

clang used to require adding an ".exe" suffix when targeting ELF systems on Windows.

Differential Revision: https://reviews.llvm.org/D43621

llvm-svn: 326164
clang/lib/Driver/ToolChain.cpp
clang/test/Driver/Inputs/fuse_ld_windows/ld.foo.exe [new file with mode: 0755]
clang/test/Driver/fuse-ld-windows.c [new file with mode: 0644]