mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[Windows] Turn off text mode in TableGen and Rewriter to stop CRLF translation
This patch should fix the errors shown on the Windows bots by turning off text mode. I plan to investigate a better fix but this should unblock the buildbots for now. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D99363
This commit is contained in:
parent
5df4846d00
commit
5e07382161
@ -93,7 +93,7 @@ int llvm::TableGenMain(const char *argv0, TableGenMainFn *MainFn) {
|
||||
|
||||
Records.startTimer("Parse, build records");
|
||||
ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
|
||||
MemoryBuffer::getFileOrSTDIN(InputFilename, /*IsText=*/true);
|
||||
MemoryBuffer::getFileOrSTDIN(InputFilename, /*IsText=*/false);
|
||||
if (std::error_code EC = FileOrErr.getError())
|
||||
return reportError(argv0, "Could not open input file '" + InputFilename +
|
||||
"': " + EC.message() + "\n");
|
||||
@ -138,7 +138,7 @@ int llvm::TableGenMain(const char *argv0, TableGenMainFn *MainFn) {
|
||||
// This prevents recompilation of all the files depending on it if there
|
||||
// aren't any.
|
||||
if (auto ExistingOrErr =
|
||||
MemoryBuffer::getFile(OutputFilename, /*IsText=*/true))
|
||||
MemoryBuffer::getFile(OutputFilename, /*IsText=*/false))
|
||||
if (std::move(ExistingOrErr.get())->getBuffer() == Out.str())
|
||||
WriteFile = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user