Selaa lähdekoodia

Respect --enable-warnings

default_compile_flags
vector-of-bool 5 vuotta sitten
vanhempi
commit
f1a57c291b
3 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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…
Peruuta
Tallenna