CheckCompilerFlag: 3.26.0-rc6 no longer ignores unrelated unused arguments
LLVM-git fails to compile with newer CMAKE 3.26 RCs
I am crossposting an issue here for awareness which shows up when using newer CMAKE 3.26 RCs with LLVM-git. LLVM errors out when the compiler-rt subproject is compiled. More details can be found in the linked issues below. I've re-produced this with CMAKE 3.26.0.rc6.442.g9fe6771b.
Update: It is currently thought to be a defect in CMAKE's handling of -fPIC
, I've verified that the distribution provided CMAKE (CachyOS) does not show this build issue.
Several people confirmed it on the LLVM Github issue tracker who are on a Fedora snapshot that ships a 3.26 RC, see:
https://github.com/llvm/llvm-project/issues/61293
https://github.com/llvm/llvm-project/issues/61190
This issue also showed up when compiling libjpeg-turbo: