Skip to content

Commit 1b36983

Browse files
author
Harlan Haskins
authored
Add armv4t for GBA programming (#73005)
1 parent 2057f0b commit 1b36983

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

cmake/modules/SwiftSetIfArchBitness.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

lib/IDETool/CompilerInvocation.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 ||

stdlib/public/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)