瀏覽代碼

Respect --enable-warnings

default_compile_flags
vector-of-bool 5 年之前
父節點
當前提交
f1a57c291b
共有 3 個文件被更改,包括 7 次插入4 次删除
  1. +3
    -2
      src/dds/build.cpp
  2. +1
    -0
      src/dds/build/plan/library.cpp
  3. +3
    -2
      src/dds/library.hpp

+ 3
- 2
src/dds/build.cpp 查看文件

@@ -174,8 +174,9 @@ void dds::build(const build_params& params, const package_manifest& man) {
= load_usage_requirements(params.root, params.out_root, params.lm_index);

library_build_params lib_params;
lib_params.build_tests = params.build_tests;
lib_params.build_apps = params.build_apps;
lib_params.build_tests = params.build_tests;
lib_params.build_apps = params.build_apps;
lib_params.enable_warnings = params.enable_warnings;
for (const library& lib : libs) {
lib_params.out_subdir = fs::relative(lib.path(), params.root);
pkg.add_library(library_plan::create(lib, lib_params, ureqs));

+ 1
- 0
src/dds/build/plan/library.cpp 查看文件

@@ -40,6 +40,7 @@ library_plan library_plan::create(const library& lib,
}

auto compile_rules = lib.base_compile_rules();
compile_rules.enable_warnings() = params.enable_warnings;
for (const auto& use : lib.manifest().uses) {
ureqs.apply(compile_rules, use.namespace_, use.name);
}

+ 3
- 2
src/dds/library.hpp 查看文件

@@ -43,8 +43,9 @@ public:

struct library_build_params {
fs::path out_subdir;
bool build_tests = false;
bool build_apps = false;
bool build_tests = false;
bool build_apps = false;
bool enable_warnings = false;
};

std::vector<library> collect_libraries(path_ref where);

Loading…
取消
儲存