comparison 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
comparison
equal deleted inserted replaced
1483:defafbabbe32 1484:7d3b47852a7a
201 #endif 201 #endif
202 202
203 // Handle fixed-up arguments! 203 // Handle fixed-up arguments!
204 cl::SetVersionPrinter(&printVersion); 204 cl::SetVersionPrinter(&printVersion);
205 cl::ParseCommandLineOptions(final_args.size(), (char**)&final_args[0], "LLVM-based D Compiler\n", true); 205 cl::ParseCommandLineOptions(final_args.size(), (char**)&final_args[0], "LLVM-based D Compiler\n", true);
206
207 // Print config file path if -v was passed
208 if (global.params.verbose) {
209 const std::string& path = cfg_file.path();
210 if (!path.empty())
211 printf("config %s\n", path.c_str());
212 }
206 213
207 // Negated options 214 // Negated options
208 global.params.link = !compileOnly; 215 global.params.link = !compileOnly;
209 global.params.obj = !dontWriteObj; 216 global.params.obj = !dontWriteObj;
210 global.params.useInlineAsm = !noAsm; 217 global.params.useInlineAsm = !noAsm;