Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152519486
D13911.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
889 B
Referenced Files
None
Subscribers
None
D13911.diff
View Options
Index: head/Makefile.inc1
===================================================================
--- head/Makefile.inc1
+++ head/Makefile.inc1
@@ -1143,6 +1143,12 @@
WMAKE_TGTS+= build${libcompat}
.endif
+# record buildworld time in seconds
+.if make(buildworld)
+_BUILDWORLD_START!= date '+%s'
+.export _BUILDWORLD_START
+.endif
+
buildworld: buildworld_prologue ${WMAKE_TGTS} buildworld_epilogue .PHONY
.ORDER: buildworld_prologue ${WMAKE_TGTS} buildworld_epilogue
@@ -1155,6 +1161,9 @@
@echo
@echo "--------------------------------------------------------------"
@echo ">>> World build completed on `LC_ALL=C date`"
+ @seconds=$$(($$(date '+%s') - ${_BUILDWORLD_START})); \
+ echo -n ">>> World build in $$seconds seconds, "; \
+ echo "ncpu: $$(sysctl -n hw.ncpu)${.MAKE.JOBS:S/^/, make -j/}"
@echo "--------------------------------------------------------------"
#
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 11:24 AM (13 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31566654
Default Alt Text
D13911.diff (889 B)
Attached To
Mode
D13911: `make buildworld' should display the build time in seconds
Attached
Detach File
Event Timeline
Log In to Comment