How to completely set all native binary toolchain arguments?

How does Gradle determine the default arguments when compiling a native binary?

Is it possible to remove all of these and completely specify every argument that is passed to the toolchain? If so, how?

Gradle doesn’t add much to the arguments by default.  You can see what’s being set by inspecting the generated option files under ‘build/tmp’.

* You can configure the compiler, linker and assembler args for each component you’re building: http://www.gradle.org/docs/nightly/userguide/nativeBinaries.html#N15DB5
* You can override the generated arguments on a per-toolchain basis: http://www.gradle.org/docs/nightly/userguide/nativeBinaries.html#native_binaries:tool_chain