diff options
author | Aaron Smith <aaron.smith@microsoft.com> | 2018-04-02 20:57:06 +0000 |
---|---|---|
committer | Aaron Smith <aaron.smith@microsoft.com> | 2018-04-02 20:57:06 +0000 |
commit | 321c2487d7b1806cb3cc1a2391b130935bc06b64 (patch) | |
tree | 4cb047451b901c51f2a145cb76fe7c6b6ba92f72 /llvm/lib/ExecutionEngine/Orc | |
parent | cbb0450540ed03d3c630996cbb8ef719a8f6b6d5 (diff) | |
download | bcm5719-llvm-321c2487d7b1806cb3cc1a2391b130935bc06b64.tar.gz bcm5719-llvm-321c2487d7b1806cb3cc1a2391b130935bc06b64.zip |
[lit] Fix problem in how Python versions open files with different encodings
Summary:
This issue was found when running the clang unit test on Windows. Python 3.x cannot open some of the files that the tests are using with a simple open because of their encoding. Python 2.7+ and Python 3.x both support io.open which allows for an encoding to be specified.
This change will determine whether two files being compared should be opened (and then compared) as text or binary and whether to use utf-8 or the default encoding before proceeding with a line-by-line comparison.
Patch by Stella Stamenova!
Reviewers: zturner, llvm-commits, rnk, MaggieYi
Reviewed By: zturner
Subscribers: asmith, MatzeB, stella.stamenova, delcypher, llvm-commits
Differential Revision: https://reviews.llvm.org/D43165
llvm-svn: 329012
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc')
0 files changed, 0 insertions, 0 deletions