[PATCH] Fix Windows path formatting when using -MD

Yung, Douglas douglas_yung at playstation.sony.com
Thu Apr 9 12:27:26 PDT 2015


Hi,

This patch fixes a problem on Windows when the compiler generates a dependency file using -MD or -MMD. The problem is that when emitting a path that contains spaces, the compiler emits it by escaping the spaces with a leading backspace character which is not valid in Windows. The proper fix for this is to just emit the path enclosed in double quotes which is accepted by Windows. This patch makes that change, and the compiler will then generate the double quoted paths only when the compiler is hosted on Windows. It also updates 3 tests that were affected by this change to accept this change on Windows as well as verify the change works as expected.

Douglas Yung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150409/55cdd3e9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MD-option-fix.patch
Type: application/octet-stream
Size: 3784 bytes
Desc: MD-option-fix.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150409/55cdd3e9/attachment.obj>


More information about the llvm-commits mailing list