Page MenuHomeFreeBSD

Makefile: Support universe-toolchain on non-FreeBSD
ClosedPublic

Authored by jrtc27 on Aug 22 2023, 3:00 AM.
Tags
None
Referenced Files
F87262190: D41545.id.diff
Sun, Jun 30, 11:12 PM
F87262187: D41545.id126430.diff
Sun, Jun 30, 11:12 PM
F87262183: D41545.id126353.diff
Sun, Jun 30, 11:12 PM
F87260692: D41545.diff
Sun, Jun 30, 10:44 PM
Unknown Object (File)
Sat, Jun 29, 9:24 AM
Unknown Object (File)
Fri, Jun 28, 8:23 PM
Unknown Object (File)
May 21 2024, 8:30 PM
Unknown Object (File)
Apr 30 2024, 9:42 PM
Subscribers
None

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jrtc27 created this revision.

This just chooses the default -target in effect?

This revision is now accepted and ready to land.Aug 23 2023, 4:34 PM
In D41545#947168, @jhb wrote:

This just chooses the default -target in effect?

I believe that's all this affects, yes