Read Swift documentation Compiling Swift Generics. Useful reading.

The -### driver flag performs a “dry run” which prints all commands to run without actually doing anything.

Interestings compiler flags like -debug-cycles and -stats-output-dir for debugging compiler speed.