[dsymutil] Put Swift interface files into a per-arch subdirectory.

This was meant to be part of the original commit r358921, but somehow
got lost.

<rdar://problem/49751748>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adrian Prantl 2019-04-23 16:42:35 +00:00
parent bd11c290c4
commit 9a94283566
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
# RUN: echo "// module Foo" >%t.dir/Foo/x86_64.swiftinterface
# RUN: dsymutil -oso-prepend-path %t.dir -y %s \
# RUN: -o %t.dir/swift-interface.dSYM
# RUN: cat %t.dir/swift-interface.dSYM/Contents/Resources/Swift/Foo.swiftinterface \
# RUN: cat %t.dir/swift-interface.dSYM/Contents/Resources/Swift/x86_64/Foo.swiftinterface \
# RUN: | FileCheck %s --check-prefix=INTERFACE
# WARNINGS: cannot copy parseable Swift interface

View File

@ -2497,7 +2497,7 @@ static Error copySwiftInterfaces(
std::error_code EC;
SmallString<128> InputPath;
SmallString<128> Path;
sys::path::append(Path, *Options.ResourceDir, "Swift");
sys::path::append(Path, *Options.ResourceDir, "Swift", Architecture);
if ((EC = sys::fs::create_directories(Path.str(), true,
sys::fs::perms::all_all)))
return make_error<StringError>(