[PATCH] D43621: [Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows.

Igor Kudrin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 22 07:53:31 PST 2018


ikudrin added inline comments.


================
Comment at: lib/Driver/ToolChain.cpp:415
     // second-guess that.
-    if (llvm::sys::fs::exists(UseLinker))
+    if (llvm::sys::fs::can_execute(UseLinker))
       return UseLinker;
----------------
Hahnfeld wrote:
> I don't think we should do this for absolute paths?
Why not? You can omit ".exe" suffix on Windows when calling an application, right?


Repository:
  rC Clang

https://reviews.llvm.org/D43621





More information about the cfe-commits mailing list