# \[cpp-plugin\] Display compiler/linker commands

**URL:** <https://discuss.gradle.org/t/cpp-plugin-display-compiler-linker-commands/3632>\
**Category:** Old Forum Archive\
**Created:** [July 15, 2013, 2:10pm UTC](https://discuss.gradle.org/t/cpp-plugin-display-compiler-linker-commands/3632 "2013-07-15T14:10:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Price](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Michael\_Price](https://discuss.gradle.org/u/Michael_Price)\
**Post date:** [July 15, 2013, 2:10pm UTC](https://discuss.gradle.org/t/cpp-plugin-display-compiler-linker-commands/3632/1 "2013-07-15T14:10:00Z")

</div>

Is there a way to instruct the cpp plugin to log the compiler and linker commands that are being executed to the console?

---

<div class="post-metadata">

**Author:** ![daz](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/daz/32/2475_2.png) [@daz](https://discuss.gradle.org/u/daz)\
**Post date:** [July 15, 2013, 4:05pm UTC](https://discuss.gradle.org/t/cpp-plugin-display-compiler-linker-commands/3632/2 "2013-07-15T16:05:00Z")

</div>

The best way is to run the build with ‘–info’.

```gradle
cpp/cpp-exe » gradle --info mainExecutable | grep 'Starting process'
Starting process 'command '/usr/bin/g++''. Working directory: /usr/bin Command: /usr/bin/g++ -v
Starting process 'command '/usr/bin/g++''. Working directory: /Users/daz/dev/gradlestuff/samples/cpp/cpp-exe Command: /usr/bin/g++ @/Users/daz/dev/gradlestuff/samples/cpp/cpp-exe/build/tmp/linkMainExecutable/compiler-options.txt

```

Where possible, Gradle will write command arguments to an option file, which will be found under ‘build/tmp’.
