diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-04-16 21:12:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 21:12:03 +0200 |
commit | b0c8affbd943b6d86bf650ceab7faa16eacaddcb (patch) | |
tree | f94c889437c265256760dd2b5216cb54368c5d6e /bin/spack_cmd.bat | |
parent | 03a7643816a17096beb8ba4939e78a22bd372390 (diff) | |
download | spack-b0c8affbd943b6d86bf650ceab7faa16eacaddcb.tar.gz spack-b0c8affbd943b6d86bf650ceab7faa16eacaddcb.tar.bz2 spack-b0c8affbd943b6d86bf650ceab7faa16eacaddcb.tar.xz spack-b0c8affbd943b6d86bf650ceab7faa16eacaddcb.zip |
gcc: avoid excessive stat calls (#30005)
For about a decade GCC has an option `-f[no]-canonical-system-headers`
which basically runs `realpath` on all "system headers", to possibly
reduce the length of paths in diagnostics. [1]
Spack usually installs the "system headers" of GCC in very deeply nested
directories. Calling `realpath` there results in stat calls on every
level, for every header file. On some slow filesystem I have,
`-fno-canonical-system-headers` gives about 5x speedup to compile hello
world in C, meaning that ./configure scripts would be much faster when
using this flag by default.
[1] https://codereview.appspot.com/6495088
Diffstat (limited to 'bin/spack_cmd.bat')
0 files changed, 0 insertions, 0 deletions