[all-commits] [llvm/llvm-project] dc078e: TargetParser: fix getProcessTriple in universal bu...

Jon Roelofs via All-commits all-commits at lists.llvm.org
Fri Jul 14 13:45:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dc078e6eaacff66596fac76b6104aa504f77d45d
      https://github.com/llvm/llvm-project/commit/dc078e6eaacff66596fac76b6104aa504f77d45d
  Author: Jon Roelofs <jonathan_roelofs at apple.com>
  Date:   2023-07-14 (Fri, 14 Jul 2023)

  Changed paths:
    M llvm/lib/TargetParser/Host.cpp

  Log Message:
  -----------
  TargetParser: fix getProcessTriple in universal builds

The bug happens when you build e.g. an x64_64;arm64 JIT with
LLVM_HOST_TRIPLE=x86_64-apple-macos, and then run it on an apple-m1 not under
Rosetta. In that case, sys::getProcessTriple() will return an x86_64 triple,
not an arm64 one.

Differential revision: https://reviews.llvm.org/D138449




More information about the All-commits mailing list