[clang] [llvm] [LLVM] [Clang] Support for Gentoo `*t64` triples (64-bit time_t ABIs) (PR #111302)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 6 10:10:09 PDT 2024


=?utf-8?q?Micha=C5=82_G=C3=B3rny?= <mgorny at gentoo.org>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/111302 at github.com>


================
@@ -610,7 +610,8 @@ static llvm::Triple computeTargetTriple(const Driver &D,
     if (A->getOption().matches(options::OPT_m64) ||
         A->getOption().matches(options::OPT_maix64)) {
       AT = Target.get64BitArchVariant().getArch();
-      if (Target.getEnvironment() == llvm::Triple::GNUX32)
+      if (Target.getEnvironment() == llvm::Triple::GNUX32 ||
----------------
MaskRay wrote:

Optional: you could simplify the pattern  with `llvm::is_contained({...}, X)`

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


More information about the cfe-commits mailing list