HomeFreeBSD

Makefile: Support universe-toolchain on non-FreeBSD

Description

Makefile: Support universe-toolchain on non-FreeBSD

We currently pass MACHINE and MACHINE_ARCH as TARGET and TARGET_ARCH
respectively for universe-toolchain, but on non-FreeBSD these may not
have values that we understand (e.g. on Linux it will be x86_64 rather
than amd64) for TARGET/TARGET_ARCH (note that we do support them for
MACHINE/MACHINE_ARCH). Since the choice is a bit arbitrary and merely
determines what LLVM's default triple will be, use amd64 on non-FreeBSD
as a known-good default.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D41545

Details

Provenance
jrtc27Authored on Aug 23 2023, 5:00 PM
Reviewer
jhb
Differential Revision
D41545: Makefile: Support universe-toolchain on non-FreeBSD
Parents
rG62f243acea24: tools/build/make.py: Make --with-default-sys-path mirror usr.bin/bmake
Branches
Unknown
Tags
Unknown