[all-commits] [llvm/llvm-project] 345027: [Driver][FreeBSD] Generalise lib32 handling to sup...

Jessica Clarke via All-commits all-commits at lists.llvm.org
Sun Jul 9 17:46:47 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3450272fc281979388bb845a9fffb59b42cc2e7e
  Author: Jessica Clarke <jrtc27 at jrtc27.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/FreeBSD.cpp

  Log Message:
  [Driver][FreeBSD] Generalise lib32 handling to support arm

The current code maintains its own list of 32-bit architectures for
which there is a 64-bit FreeBSD architecture that supports it for lib32.
This is unnecessary (if it's not supported, the directory just won't
exist), and means that, when FreeBSD gains lib32 support for a new
architecture, you need an updated toolchain that knows about it.
Instead we can check for any 32-bit architecture and have forwards

This is motivated by FreeBSD adding support for building arm lib32
libraries on aarch64.

Co-authored-by: Mike Karels <karels at FreeBSD.org>

More information about the All-commits mailing list