[all-commits] [llvm/llvm-project] 629412: Triple: Fix handling of macos with unexpected targ...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Dec 18 06:28:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 629412938b01773fe92cb5fd12f1c434fd80884d
      https://github.com/llvm/llvm-project/commit/629412938b01773fe92cb5fd12f1c434fd80884d
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-12-18 (Mon, 18 Dec 2023)

  Changed paths:
    M llvm/lib/TargetParser/Triple.cpp
    M llvm/unittests/TargetParser/TripleTest.cpp

  Log Message:
  -----------
  Triple: Fix handling of macos with unexpected target arches (#75469)

Some tools with a specified target arch, but no full triple default to
the host triple. On macos hosts, this would then force using macho on
targets that didn't expect it, resulting in assertions.

We should also probably emit explicit errors if the object format is
specified on targets which don't handle it.




More information about the All-commits mailing list