summaryrefslogtreecommitdiffstats
path: root/Help/guide
diff options
context:
space:
mode:
authorSeth R Johnson <johnsonsr@ornl.gov>2021-09-30 19:36:18 (GMT)
committerSeth R Johnson <johnsonsr@ornl.gov>2021-09-30 19:36:35 (GMT)
commit8f7e98ef09085011e92b3dfeb8aaf60f31bc9270 (patch)
tree28bad367e0db1246901350b4d09ff8e9828be1ed /Help/guide
parent89d134c61d4cc78bfb9585c80144ce2acae14cfa (diff)
downloadCMake-8f7e98ef09085011e92b3dfeb8aaf60f31bc9270.zip
CMake-8f7e98ef09085011e92b3dfeb8aaf60f31bc9270.tar.gz
CMake-8f7e98ef09085011e92b3dfeb8aaf60f31bc9270.tar.bz2
cmInstallTargetGenerator: optimize rpath adjustments
With builds that have many internal library directories or many external libraries, rpaths can be quite large. The cost of calling install_name_tool thousands of times can add up to minutes on a build, especially if virus scanning software is there to help you out. With this change, instead of deleting and then re-adding an rpath, we ignore it. Likewise we batch all the rpath adjustment calls into a single command. Before, installing SCALE (some libraries have 70+ build-time RPATHs that get deleted, plus up to a dozen external RPATHs from upstream dependencies that should remain in the binary) would take almost 9 minutes on my laptop, and after this change the installation takes only 30 second.
Diffstat (limited to 'Help/guide')
0 files changed, 0 insertions, 0 deletions