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
F81909701: D16814.id46989.diff
Tue, Apr 23, 12:35 AM
F81909528: D16814.id46984.diff
Tue, Apr 23, 12:31 AM
F81909526: D16814.id47081.diff
Tue, Apr 23, 12:31 AM
F81909525: D16814.id49821.diff
Tue, Apr 23, 12:31 AM
F81909521: D16814.id.diff
Tue, Apr 23, 12:31 AM
F81908515: D16814.diff
Tue, Apr 23, 12:10 AM
Unknown Object (File)
Sat, Apr 20, 1:03 PM
Unknown Object (File)
Sat, Apr 20, 1:03 PM
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.