summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-10-09 23:42:28 +0000
committerZachary Turner <zturner@google.com>2018-10-09 23:42:28 +0000
commite5f47bbeaccb3778bc604d29f8768ccbc400ceca (patch)
tree86f6f0ad14fa3012c1e0b5d2f2c820cd46d428d4 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent409f5840a7b661ef6ed02a9dea839446a8b9f8c3 (diff)
downloadbcm5719-llvm-e5f47bbeaccb3778bc604d29f8768ccbc400ceca.tar.gz
bcm5719-llvm-e5f47bbeaccb3778bc604d29f8768ccbc400ceca.zip
[git-llvm] Fix some issues surrouding EOL conversion on Windows.
This patch fixes three issues. The first is that we didn't consider files which are explicitly set to eolstyle CRLF in the repo, and there are a handful of these. Second is that dos2unix doesn't have a -q option in GnuWin32, so this codepath wasn't working properly. Finally with newer versions of Python (or newer versions of Git, or some combination of the two) patches can't be applied when we treat stdin as text, because Python silently undoes all the work we did to convert the newlines to LF using dos2unix by using universal_newlines=True and then converting them *back* to CRLF. So we need to add a way to force stdin to be treated as binary, and use it when LF-newlines are required. Differential Revision: https://reviews.llvm.org/D51444 llvm-svn: 344095
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud