Explorar el Código

Link to stdc++fs in default gcc toolchain

default_compile_flags
vector-of-bool hace 5 años
padre
commit
7ebe0d70df
Se han modificado 1 ficheros con 6 adiciones y 3 borrados
  1. +6
    -3
      src/dds/toolchain.cpp

+ 6
- 3
src/dds/toolchain.cpp Ver fichero

@@ -78,9 +78,11 @@ toolchain toolchain::load_from_file(fs::path p) {
|| false;
// clang-format on

if (!found_single) {
throw invalid_toolchain(fmt::format("Unknown toolchain file key '{}'", key));
if (found_single) {
continue;
}

throw invalid_toolchain(fmt::format("Unknown toolchain file key '{}'", key));
}

require_key("Include-Template", inc_template);
@@ -306,8 +308,9 @@ std::optional<toolchain> toolchain::get_builtin(std::string_view s) noexcept {
"-g",
"-fPIC",
"-fdiagnostics-color",
"-pthread",
"<INPUTS>",
"-pthread",
"-lstdc++fs",
"-o",
"<OUT>",
});

Cargando…
Cancelar
Guardar