summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/compiler-object-run_command.md
AgeCommit message (Collapse)Author
2018-04-23Updated version number for new release.Jussi Pakkanen
2018-03-06Allow passing a compiler object to run_command()Evgenii Shatokhin
Sometimes it is needed to run the current compiler with specific options not to compile a file but rather to obtain additional info. For example, GCC has several -print-* options to query it about the paths to different libraries and development files. One use case is to get the location of development files for GCC plugins, which is not easily obtainable by other means: gcc -print-file-name=plugin For this purpose, it would be convenient if the compiler object returned by meson.get_compiler(lang) could be used in run_command() directly. This commit implements it. Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>