Skip to content
  • Rafael Kitover's avatar
    use num cpu cores to parallelize LTO link with gcc · de89bd05
    Rafael Kitover authored
    Use the `cmake` `ProcessorCount` module to determine the number of CPU
    threads, and set the `-flto` flag for gcc to `-flto=${num_cpus}` if the
    number of CPU threads is detected and is greater than `1`.
    
    clang does not support this.
    de89bd05