I am having trouble debugging a native Gradle build. The only way I can seem to get Gradle to print any info about what the actual g++ invocations are is to use -d which results in a deluge of unnecessary information. Is there a simple way to see the compiler output? Ideally, this would be a the default I could set in my build file.
We generate an options file (build/tmp//options.txt) that has all of the common arguments. You can use -i
or --info
to see just the command line that’s being executed (per source file) as well.
There’s a hook withArguments
that will let you see/modify the arguments, but it’s only the common arguments and not the per-file arguments.