ruslo / polly

:wrench: Collection of CMake toolchain files and scripts for cross-platform build and CI testing (GCC, Visual Studio, iOS, Android, Clang analyzer, sanitizers etc.)
BSD 2-Clause "Simplified" License
862 stars 191 forks source link

Add a --dry-run option #322

Closed headupinclouds closed 5 years ago

headupinclouds commented 5 years ago

Add a --dry-run option, similar in nature to common Linux shell scripts. If this flag is specified, polly will create the generate command, print it to the log and stdout, and then quit. This allows one to use familiar polly one-liners to create equivalent CMake generate commands. This can be convenient for a number of reasons, such as troubleshooting builds or creating toolchain configurations for CMake friendly IDE's. This provides a convenient alternative to starting a build, killing it (ctrl-c) and then grepping the log.