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:
* You can override the generated arguments on a per-toolchain basis: