Browse Source

Respect --enable-warnings

default_compile_flags
vector-of-bool 5 years ago
parent
commit
f1a57c291b
3 changed files with 7 additions and 4 deletions
  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 View File

= load_usage_requirements(params.root, params.out_root, params.lm_index); = load_usage_requirements(params.root, params.out_root, params.lm_index);


library_build_params lib_params; 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) { for (const library& lib : libs) {
lib_params.out_subdir = fs::relative(lib.path(), params.root); lib_params.out_subdir = fs::relative(lib.path(), params.root);
pkg.add_library(library_plan::create(lib, lib_params, ureqs)); pkg.add_library(library_plan::create(lib, lib_params, ureqs));

+ 1
- 0
src/dds/build/plan/library.cpp View File

} }


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

+ 3
- 2
src/dds/library.hpp View File



struct library_build_params { struct library_build_params {
fs::path out_subdir; 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); std::vector<library> collect_libraries(path_ref where);

Loading…
Cancel
Save