]> granicus.if.org Git - clang/commit
MarkEOLs should only be true for clang-cl.exe.
authorStephen Hines <srhines@google.com>
Wed, 20 Apr 2016 00:33:06 +0000 (00:33 +0000)
committerStephen Hines <srhines@google.com>
Wed, 20 Apr 2016 00:33:06 +0000 (00:33 +0000)
commite4c63eefa75b843eaa0548c27a68f94b159abd25
treea1454630db3c5a426d3016b9d7555b58580d7032
parent9625d162e52552164d54e95ab4800f7223516570
MarkEOLs should only be true for clang-cl.exe.

Summary:
https://llvm.org/bugs/show_bug.cgi?id=27396

This fixes an issue in response files where "\r\n" was being interpreted
as two EOL markers (i.e. we consumed the '\r' as terminating the
previous token, and then parsed the '\n' as a significant EOL). This
breaks response files where joined arguments get split across multiple
lines (like "-x\r\nc"). I also fixed an accidental issue in the
response-file.c test, where the response file is appended to, instead of
being overwritten.

Reviewers: rnk

Subscribers: danalbert, llvm-commits

Differential Revision: http://reviews.llvm.org/D19289

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266840 91177308-0d34-0410-b5e6-96231b3b80d8
test/Driver/response-file-extra-whitespace.c [new file with mode: 0644]
test/Driver/response-file.c
tools/driver/driver.cpp