mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Don't include directory names in archives.
This matches the behavior of both gnu and os x versions of ar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184420 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -399,14 +399,6 @@ doExtract(std::string* ErrMsg) {
|
||||
if (Paths.empty() ||
|
||||
(std::find(Paths.begin(), Paths.end(), I->getPath()) != Paths.end())) {
|
||||
|
||||
// Make sure the intervening directories are created
|
||||
if (I->hasPath()) {
|
||||
sys::Path dirs(I->getPath());
|
||||
dirs.eraseComponent();
|
||||
if (dirs.createDirectoryOnDisk(/*create_parents=*/true, ErrMsg))
|
||||
return true;
|
||||
}
|
||||
|
||||
// Open up a file stream for writing
|
||||
std::ios::openmode io_mode = std::ios::out | std::ios::trunc |
|
||||
std::ios::binary;
|
||||
|
Reference in New Issue
Block a user