Page MenuHomeFreeBSD

Don't run cc --version during cleandir/obj stages
ClosedPublic

Authored by arichardson on Aug 20 2018, 4:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 7:30 PM
Unknown Object (File)
Fri, Dec 6, 9:53 AM
Unknown Object (File)
Wed, Dec 4, 2:47 PM
Unknown Object (File)
Sun, Nov 24, 9:56 AM
Unknown Object (File)
Fri, Nov 22, 10:39 PM
Unknown Object (File)
Nov 18 2024, 8:24 PM
Unknown Object (File)
Oct 21 2024, 8:51 PM
Unknown Object (File)
Oct 21 2024, 7:45 AM
Subscribers

Details

Summary

This will no work when there is no cc in $PATH (which is the case before the
cross-tools stage once we no longer inherit $PATH in $WMAKE).
The variables set by bsd.compiler.mk/bsd.linker.mk are not needed in these
stages so this avoids a little bit of makefile parsing.

Test Plan

buildworld works with my patches to remove $PATH from $TMPPATH

Diff Detail

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

Event Timeline

Also add it to delete-old step

share/mk/bsd.compiler.mk
32 ↗(On Diff #46989)

I wonder if this blob should be inside the '.if !target' check so it is only done once per make invocation? Setting the variables multiple times probably doesn't matter, so it's probably more a style question for Bryan than anything else.

33 ↗(On Diff #46989)

s/on/in/

  • Fix typo
  • Move inside include guard
This revision is now accepted and ready to land.Oct 30 2018, 4:19 PM
This revision was automatically updated to reflect the committed changes.