# Complete Command Line Used By The Compiler?

**URL:** <https://discourse.cmake.org/t/complete-command-line-used-by-the-compiler/9214>\
**Category:** Code\
**Created:** [October 17, 2023, 9:43pm UTC](https://discourse.cmake.org/t/complete-command-line-used-by-the-compiler/9214 "2023-10-17T21:43:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bertram](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@Bertram](https://discourse.cmake.org/u/Bertram)\
**Post date:** [October 17, 2023, 9:43pm UTC](https://discourse.cmake.org/t/complete-command-line-used-by-the-compiler/9214/1 "2023-10-17T21:43:41Z")

</div>

In order to incorporate a CRC into my microcontroller application, I am required to execute the linker twice. Currently, I have implemented all the necessary build procedures and CRC calculations from the generated files. However, I am facing difficulties in finding a way to execute the linker a second time, including the CRC. Previously, when using Makefile scripts, I would copy the Makefile, modify it accordingly, and execute the modified file as a post-compile step. Is there a means to retrieve the exact command line used by cmake to execute the linker?

---

<div class="post-metadata">

**Author:** ![Colin](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@Colin](https://discourse.cmake.org/u/Colin)\
**Post date:** [October 17, 2023, 9:44pm UTC](https://discourse.cmake.org/t/complete-command-line-used-by-the-compiler/9214/2 "2023-10-17T21:44:34Z")

</div>

Hey Bertram,  
Try utilizing the \_LINKER\_LAUNCHER as a script that internally performs the double linking process with the provided arguments.
