Clang/Flang should support IPO when the linker is lld-link
When:
- DCMAKE_C_COMPILER=clang-cl
- DCMAKE_CXX_COMPILER=clang-cl
- DCMAKE_Fortran_COMPILER=flang
- DCMAKE_LINKER=lld-link
CMake should support Interprocedural optimization:
- Pass -flto to the compilers
- Invoke lld-link as normal
This is not a difficult patch if you know where to look, but I don't.