MRtrix3 / mrtrix3

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
http://www.mrtrix.org
Mozilla Public License 2.0
295 stars 182 forks source link

Disable LLD when using GCC with LTO enabled #2881

Closed daljit46 closed 7 months ago

daljit46 commented 7 months ago

I made the unfortunate discovery that the LLVM linker cannot perform Link Time Optimisation when compiling with GCC. See here. In fact, the compilation is broken if lld is used with GCC with LTO on.

So we simply don't use lld if we detect that GCC and LTO are used together.

github-actions[bot] commented 7 months ago

clang-tidy review says "All clean, LGTM! :+1:"