浏览代码

--full option to build _everything_

default_compile_flags
vector-of-bool 5 年前
父节点
当前提交
2789f874e4
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      src/dds/ddslim.main.cpp

+ 11
- 0
src/dds/ddslim.main.cpp 查看文件

"Enable compiler warnings", "Enable compiler warnings",
{"warnings", 'W'}}; {"warnings", 'W'}};


args::Flag full{cmd,
"full",
"Build all optional components (tests, apps, warnings, export)",
{"full", 'F'}};

args::ValueFlag<int> num_jobs{cmd, args::ValueFlag<int> num_jobs{cmd,
"jobs", "jobs",
"Set the number of parallel jobs when compiling files", "Set the number of parallel jobs when compiling files",
if (exists(man_filepath)) { if (exists(man_filepath)) {
man = dds::library_manifest::load_from_file(man_filepath); man = dds::library_manifest::load_from_file(man_filepath);
} }
if (full.Get()) {
params.do_export = true;
params.build_tests = true;
params.build_apps = true;
params.enable_warnings = true;
}
dds::build(params, man); dds::build(params, man);
return 0; return 0;
} }

正在加载...
取消
保存