Is there a way to instruct the cpp plugin to log the compiler and linker commands that are being executed to the console?
Michael_Price (Michael Price) #1
The best way is to run the build with ‘–info’.
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’.