Remap aarch64_32 to arm64_32 When Searching for Modules

The triple name aarch64_32 does not actually name a valid platform. The
actual platform (and valid triple arch string, confusingly enough) is
arm64_32. Remap between the two to correct for this difference.

rdar://77281393
This commit is contained in:
Robert Widmann
2021-04-28 13:29:40 -07:00
parent 937e1a365c
commit 22f3e9620b
4 changed files with 1 additions and 8 deletions

View File

@@ -254,6 +254,7 @@ getArchForAppleTargetSpecificModuleTriple(const llvm::Triple &triple) {
return llvm::StringSwitch<StringRef>(tripleArchName)
.Cases("arm64", "aarch64", "arm64")
.Cases("arm64_32", "aarch64_32", "arm64_32")
.Cases("x86_64", "amd64", "x86_64")
.Cases("i386", "i486", "i586", "i686", "i786", "i886", "i986",
"i386")
@@ -262,7 +263,6 @@ getArchForAppleTargetSpecificModuleTriple(const llvm::Triple &triple) {
// .Case ("armv7s", "armv7s")
// .Case ("armv7k", "armv7k")
// .Case ("armv7", "armv7")
// .Case ("arm64_32", "arm64_32")
// .Case ("arm64e", "arm64e")
.Default(tripleArchName);
}

View File

@@ -19,9 +19,6 @@
// HEADER: func flower()
// HEADER: }
// rdar://77281393
// UNSUPPORTED: CPU=arm64_32
func grow(_ branch: Trunk.Branch, from trunk: Trunk) {
branch.flower()
trunk.addLimb(branch)

View File

@@ -1,8 +1,6 @@
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
// REQUIRES: objc_interop
// UNSUPPORTED: CPU=arm64_32
// RUN: echo '#include "header-to-print.h"' > %t.m
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -source-filename %s -print-header -header-to-print %S/Inputs/print_clang_header/header-to-print.h -print-regular-comments -enable-objc-interop -disable-objc-attr-requires-foundation-module --cc-args %target-cc-options -isysroot %clang-importer-sdk-path -fsyntax-only %t.m -I %S/Inputs/print_clang_header > %t.txt
// RUN: diff -u %S/Inputs/print_clang_header/header-to-print.h.printed.txt %t.txt

View File

@@ -3,8 +3,6 @@
// RUN: %S/Inputs/print_clang_header_swift_name.h -skip-unavailable --cc-args %target-cc-options \
// RUN: -isysroot %clang-importer-sdk-path -fsyntax-only %t.m -I %S/Inputs | %FileCheck %s
// UNSUPPORTED: CPU=arm64_32
// REQUIRES: objc_interop
// CHECK: enum Normal : Int {