Why is --silent added to IAR Linker & Compiler automatically?

On line 39 of Modules/Compiler/IAR.cmake, --silent is added to the linker flags. Is this an error? Silent means there is no statistic printed.
Also some other silent flags are set in this file. I think the user shoud set this in the toolchain file, if the need this.

It was once hard-coded in the link command-line generation rule, but since CMake 3.27 it’s merely been in the default linker flags, which can be change by users or the project. See CMake Issue 24828 and CMake MR 8421.

1 Like