Page MenuHomeFreeBSD

Fix build with WITH_CLANG_BOOTSTRAP and WITHOUT_CLANG
ClosedPublic

Authored by dim on Fri, Apr 18, 10:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 18, 11:21 PM
Unknown Object (File)
Fri, Apr 18, 6:33 PM
Unknown Object (File)
Fri, Apr 18, 6:04 PM
Unknown Object (File)
Fri, Apr 18, 2:01 PM
Unknown Object (File)
Fri, Apr 18, 1:23 PM
Unknown Object (File)
Fri, Apr 18, 12:13 PM
Unknown Object (File)
Fri, Apr 18, 11:50 AM
Unknown Object (File)
Fri, Apr 18, 11:33 AM
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