[llvm-branch-commits] [clang] [llvm] [LLVM] [Clang] Backport "Support for Gentoo `*t64` triples (64-bit time_t ABIs)" (PR #112364)

Michał Górny via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Oct 30 22:00:12 PDT 2024


================
@@ -294,7 +294,11 @@ class Triple {
 
     PAuthTest,
 
-    LastEnvironmentType = PAuthTest
+    GNUT64,
+    GNUEABIT64,
+    GNUEABIHFT64,
+
+    LastEnvironmentType = GNUEABIHFT64
----------------
mgorny wrote:

For the record, Gentoo has already backported it to 18.x as well (I was literally waiting for the patch to be merged as a confirmation that this approach is good).

My alternative idea would be to limit the changes to accept `*t64` but return one of the existing enum values, i.e. `-gnut64` would return `::GNU` and so on. We'd lose the ability to customize clang behavior on it, but at least it won't refuse to work right away.

https://github.com/llvm/llvm-project/pull/112364


More information about the llvm-branch-commits mailing list