Searched hist:"74 f6548619cdef063d5beebe52c1aafc67df2cd0" (Results 1 – 3 of 3) sorted by relevance
/freebsd/share/mk/ |
H A D | bsd.linker.mk | diff 74f6548619cdef063d5beebe52c1aafc67df2cd0 Tue Oct 23 08:31:25 CEST 2018 Alex Richardson <arichardson@FreeBSD.org> Only compute the X_COMPILER_*/X_LINKER_* variables when needed
When building CheriBSD we have to set XLD/XCC/XCFLAGS on the command line. This triggers the $XCC != $CC case in bsd.compiler.mk (and the same for LD in bsd.linker.mk) which causes it to call ${XCC} --version and ${XLD} --version (plus various awk+sed+echo calls) in every subdirectory. For incremental builds and stages that only walk the source tree this is often the majority of the time spent in that directory.
By only computing the value of the X_COMPILER_*/X_LINKER_* variables if _WANT_TOOLCHAIN_CROSS_VARS is set we can reduce the number of cc/ld calls to once per build stage instead of once per recursive make.
With this change (and no changes to the sources) the `make includes` stage now takes 28 seconds at -j1 instead of 86 seconds.
Approved By: brooks (mentor) Differential Revision: https://reviews.freebsd.org/D17046
|
H A D | bsd.compiler.mk | diff 74f6548619cdef063d5beebe52c1aafc67df2cd0 Tue Oct 23 08:31:25 CEST 2018 Alex Richardson <arichardson@FreeBSD.org> Only compute the X_COMPILER_*/X_LINKER_* variables when needed
When building CheriBSD we have to set XLD/XCC/XCFLAGS on the command line. This triggers the $XCC != $CC case in bsd.compiler.mk (and the same for LD in bsd.linker.mk) which causes it to call ${XCC} --version and ${XLD} --version (plus various awk+sed+echo calls) in every subdirectory. For incremental builds and stages that only walk the source tree this is often the majority of the time spent in that directory.
By only computing the value of the X_COMPILER_*/X_LINKER_* variables if _WANT_TOOLCHAIN_CROSS_VARS is set we can reduce the number of cc/ld calls to once per build stage instead of once per recursive make.
With this change (and no changes to the sources) the `make includes` stage now takes 28 seconds at -j1 instead of 86 seconds.
Approved By: brooks (mentor) Differential Revision: https://reviews.freebsd.org/D17046
|
/freebsd/ |
H A D | Makefile.inc1 | diff 74f6548619cdef063d5beebe52c1aafc67df2cd0 Tue Oct 23 08:31:25 CEST 2018 Alex Richardson <arichardson@FreeBSD.org> Only compute the X_COMPILER_*/X_LINKER_* variables when needed
When building CheriBSD we have to set XLD/XCC/XCFLAGS on the command line. This triggers the $XCC != $CC case in bsd.compiler.mk (and the same for LD in bsd.linker.mk) which causes it to call ${XCC} --version and ${XLD} --version (plus various awk+sed+echo calls) in every subdirectory. For incremental builds and stages that only walk the source tree this is often the majority of the time spent in that directory.
By only computing the value of the X_COMPILER_*/X_LINKER_* variables if _WANT_TOOLCHAIN_CROSS_VARS is set we can reduce the number of cc/ld calls to once per build stage instead of once per recursive make.
With this change (and no changes to the sources) the `make includes` stage now takes 28 seconds at -j1 instead of 86 seconds.
Approved By: brooks (mentor) Differential Revision: https://reviews.freebsd.org/D17046
|