Mercurial > projects > ldc
diff gen/main.cpp @ 1484:7d3b47852a7a
Print the path to the configuration file being used if `-v` is passed.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 07 Jun 2009 17:20:55 +0200 |
parents | d9c5f5a43403 |
children | 26d061e61b02 833337c65fd3 |
line wrap: on
line diff
--- a/gen/main.cpp Sun Jun 07 16:00:13 2009 +0200 +++ b/gen/main.cpp Sun Jun 07 17:20:55 2009 +0200 @@ -204,6 +204,13 @@ cl::SetVersionPrinter(&printVersion); cl::ParseCommandLineOptions(final_args.size(), (char**)&final_args[0], "LLVM-based D Compiler\n", true); + // Print config file path if -v was passed + if (global.params.verbose) { + const std::string& path = cfg_file.path(); + if (!path.empty()) + printf("config %s\n", path.c_str()); + } + // Negated options global.params.link = !compileOnly; global.params.obj = !dontWriteObj;