forked from OSchip/llvm-project
llvm-ar: doExtract(): Write extracted files with F_Binary. It should fix llvm/test/Object/extract.ll
llvm-svn: 186503
This commit is contained in:
parent
633f59d126
commit
e08f569a4d
|
@ -304,7 +304,7 @@ static void doExtract(StringRef Name, object::Archive::child_iterator I) {
|
|||
|
||||
int FD;
|
||||
failIfError(
|
||||
sys::fs::openFileForWrite(Storage.c_str(), FD, sys::fs::F_None, Mode),
|
||||
sys::fs::openFileForWrite(Storage.c_str(), FD, sys::fs::F_Binary, Mode),
|
||||
Storage.c_str());
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue