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

**URL:** https://discourse.cmake.org/t/why-is-silent-added-to-iar-linker-compiler-automatically/10522
**Category:** Development
**Tags:** comp:iar
**Created:** [March 28, 2024, 3:32pm UTC](https://discourse.cmake.org/t/why-is-silent-added-to-iar-linker-compiler-automatically/10522 "2024-03-28T15:32:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ysteiner](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@ysteiner](https://discourse.cmake.org/u/ysteiner)
#### Post date: [March 28, 2024, 3:32pm UTC](https://discourse.cmake.org/t/why-is-silent-added-to-iar-linker-compiler-automatically/10522/1 "2024-03-28T15:32:10Z")

</div>

On [line 39 of Modules/Compiler/IAR.cmake](https://gitlab.kitware.com/cmake/cmake/-/blob/v3.29.0/Modules/Compiler/IAR.cmake#L39), `--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.

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [March 28, 2024, 3:49pm UTC](https://discourse.cmake.org/t/why-is-silent-added-to-iar-linker-compiler-automatically/10522/2 "2024-03-28T15:49:47Z")

</div>

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](https://gitlab.kitware.com/cmake/cmake/-/issues/24828) and [CMake MR 8421](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8421).
