Page MenuHomeFreeBSD

Force MK_CLANG_IS_CC on in XMAKE.
ClosedPublic

Authored by jhb on Nov 12 2019, 5:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 17 2023, 8:32 AM
Unknown Object (File)
Dec 12 2023, 12:18 AM
Unknown Object (File)
Sep 6 2023, 1:00 AM
Unknown Object (File)
Aug 14 2023, 5:05 PM
Unknown Object (File)
Jul 28 2023, 1:39 PM
Unknown Object (File)
Jul 11 2023, 3:10 PM
Unknown Object (File)
Jul 11 2023, 3:09 PM
Unknown Object (File)
Jul 8 2023, 3:46 PM
Subscribers

Details

Summary

This ensures that a bootstrap clang compiler is always installed as
cc in WORLDTMP. If it is only installed as 'clang' then /usr/bin/cc
is used during the build instead of the bootstrap compiler.

Test Plan
  • tried to build riscv64sf with WITH_CLANG_BOOTSTRAP=yes but without WITH_CLANG_IS_CC=yes

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Nov 12 2019, 5:40 PM

Hmmm, does this break native builds for gcc?

It shouldn't. The only thing that honors MK_CLANG_IS_CC is the clang Makefile, and during XMAKE we only enter that subdirectory if MK_CLANG_BOOSTRAP is yes, and we shouldn't have both that and MK_GCC_BOOTSTRAP as yes at the same time.

This revision was automatically updated to reflect the committed changes.