* Set the cpu defaults for the ARM32 architectures:

- armel: arm9e. Closes: #1056115.
    - armhf: cortex-a7.
This commit is contained in:
Matthias Klose 2023-12-02 23:20:35 +01:00
parent bb32f75327
commit 97633b6d51
3 changed files with 22 additions and 0 deletions

3
debian/changelog vendored
View File

@ -7,6 +7,9 @@ llvm-toolchain-17 (1:17.0.6-2) UNRELEASED; urgency=medium
[ Matthias Klose ]
* Also use the free swap to determine the number of parallel processes.
* Set the cpu defaults for the ARM32 architectures:
- armel: arm9e. Closes: #1056115.
- armhf: cortex-a7.
-- Gianfranco Costamagna <locutusofborg@debian.org> Fri, 01 Dec 2023 10:50:00 +0100

18
debian/patches/arm32-defaults.diff vendored Normal file
View File

@ -0,0 +1,18 @@
--- a/llvm/lib/TargetParser/ARMTargetParser.cpp
+++ b/llvm/lib/TargetParser/ARMTargetParser.cpp
@@ -558,6 +558,15 @@
if (MArch == "v7k")
return "cortex-a7";
break;
+ case llvm::Triple::Linux:
+ switch (Triple.getEnvironment()) {
+ case llvm::Triple::GNUEABI:
+ return "arm9e"; // armv5te
+ case llvm::Triple::GNUEABIHF:
+ return "cortex-a7"; // armv7-a
+ default:
+ return "armv5";
+ }
default:
break;
}

View File

@ -151,3 +151,4 @@ D158066-simd-ppc64el.patch
ubuntu-releases.patch
libclang-major-version-only.diff
D148945-revert.diff
arm32-defaults.diff