Sfoglia il codice sorgente

Respect --enable-warnings

default_compile_flags
vector-of-bool 5 anni fa
parent
commit
f1a57c291b
3 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  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 Vedi File

@@ -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 Vedi File

@@ -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 Vedi File

@@ -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…
Annulla
Salva