aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/include/common/pwd.h
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-01-06 17:46:36 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-01-07 09:26:22 +0000
commit7b0d3a3ccf8d2ea3b7c8338bdf4aa588222f6adc (patch)
tree6722705fcc7652fe453201cb14c89ca6220329ff /tools/build/cross-build/include/common/pwd.h
parent0cace0bb0ae0158d8a770a88570fa93d47ffc980 (diff)
downloadsrc-7b0d3a3ccf8d2ea3b7c8338bdf4aa588222f6adc.tar.gz
src-7b0d3a3ccf8d2ea3b7c8338bdf4aa588222f6adc.zip
include: Use printf(1) instead of shell loops for header symlinks
Using a shell for loop means we have to spawn a separate install(1) process for each header that is symlinked. This patch uses printf(1) to generate an argument list that has been prefixed with the correct number of ../ and then uses a single install(1) invocation. This reduces the number of execve() calls during make includes from 2442 (with D27622) to 1382. Running `make symlinks` in include/ now spawns 214 processes instead of 1276 without this patch. Reviewed By: jhb Differential Revision: https://reviews.freebsd.org/D27723
Diffstat (limited to 'tools/build/cross-build/include/common/pwd.h')
0 files changed, 0 insertions, 0 deletions