mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Fix object file writing in llvm-lto on Windows.
We were writing in text mode. Patch by Greg Bedwell. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -136,7 +136,8 @@ int main(int argc, char **argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
raw_fd_ostream FileStream(OutputFilename.c_str(), ErrorInfo);
|
||||
raw_fd_ostream FileStream(OutputFilename.c_str(), ErrorInfo,
|
||||
sys::fs::F_Binary);
|
||||
if (!ErrorInfo.empty()) {
|
||||
errs() << argv[0] << ": error opening the file '" << OutputFilename
|
||||
<< "': " << ErrorInfo << "\n";
|
||||
|
Reference in New Issue
Block a user