#include "config.h"#include "global.h"#include "Loggers.h"int main(int argc, char* argv[])try {// 解析命令行选项,读取配置文件parse(argc, argv);boost::timer::cpu_timer stage_timer, total_timer;// 扫描源文件,搜集信息stage_timer.start();collect();MINILOG(build_exe_timer_logger, stage_timer.format(boost::timer::default_places, "%ws") << " COLLECT");if (collect_only) return 0;// 构建stage_timer.start();bool success = build();MINILOG(build_exe_timer_logger, stage_timer.format(boost::timer::default_places, "%ws") << " BUILD");if (!success) return 0;if (build_only) return 0;MINILOG(build_exe_timer_logger, total_timer.format(boost::timer::default_places, "%ws") << " TOTAL = COLLECT + BUILD");// 运行run();return 0;}catch (const po::error& ex) {std::cerr << ex.what() << '\n';return 1;}catch (int exit_code) {return exit_code;}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。