Explorar el Código

Respect --enable-warnings

default_compile_flags
vector-of-bool hace 5 años
padre
commit
f1a57c291b
Se han modificado 3 ficheros con 7 adiciones y 4 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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);

Cargando…
Cancelar
Guardar