Page MenuHomeFreeBSD

Fix build with WITH_CLANG_BOOTSTRAP and WITHOUT_CLANG
ClosedPublic

Authored by dim on Apr 18 2025, 10:56 AM.
Tags
None
Referenced Files
F121001250: D49886.id153826.diff
Sun, Jun 22, 7:56 PM
F120940263: D49886.id153880.diff
Sun, Jun 22, 7:53 AM
Unknown Object (File)
Sat, Jun 21, 2:51 PM
Unknown Object (File)
Sat, Jun 21, 6:58 AM
Unknown Object (File)
Fri, Jun 20, 5:13 PM
Unknown Object (File)
Tue, Jun 17, 3:26 AM
Unknown Object (File)
Thu, May 29, 6:21 PM
Unknown Object (File)
Mon, May 26, 12:18 PM
Subscribers

Details

Summary

When WITH_CLANG_BOOTSTRAP and WITHOUT_CLANG are both set, the
cross-tools stage does not build a cross clang binary. This is because
the Makefile in usr.bin/clang checks for WITHOUT_CLANG, and skips
building the binary.

To fix this, ensure that WITH_CLANG is set for the cross-tools phase
whenever WITH_CLANG_BOOTSTRAP is set. While here, skip using the
Makefile in usr.bin/clang, and directly use the Makefile in
usr.bin/clang/clang instead.

Reported by: avg
PR: 286154
MFC after: 1 week

Diff Detail

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