File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ function(set_if_arch_bitness var_name)
99 if ("${SIA_ARCH} " STREQUAL "i386" OR
1010 "${SIA_ARCH} " STREQUAL "i686" OR
1111 "${SIA_ARCH} " STREQUAL "x86" OR
12+ "${SIA_ARCH} " STREQUAL "armv4t" OR
1213 "${SIA_ARCH} " STREQUAL "armv5" OR
1314 "${SIA_ARCH} " STREQUAL "armv6" OR
1415 "${SIA_ARCH} " STREQUAL "armv6m" OR
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ static std::string adjustClangTriple(StringRef TripleStr) {
6060 OS << " armv5" ; break ;
6161 case llvm::Triple::SubArchType::ARMSubArch_v5te:
6262 OS << " armv5te" ; break ;
63+ case llvm::Triple::SubArchType::ARMSubArch_v4t:
64+ OS << " armv4t" ; break ;
6365 default :
6466 // Adjust i386-macosx to x86_64 because there is no Swift stdlib for i386.
6567 if ((Triple.getOS () == llvm::Triple::MacOSX ||
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
183183 # the following are all ELF targets
184184 if ("ARM" IN_LIST LLVM_TARGETS_TO_BUILD)
185185 list (APPEND EMBEDDED_STDLIB_TARGET_TRIPLES
186+ "armv4t armv4t-none-none-eabi armv4t-none-none-eabi"
186187 "armv6 armv6-none-none-eabi armv6-none-none-eabi"
187188 "armv6m armv6m-none-none-eabi armv6m-none-none-eabi"
188189 "armv7 armv7-none-none-eabi armv7-none-none-eabi"
You can’t perform that action at this time.
0 commit comments