Ver código fonte

Link to stdc++fs in default gcc toolchain

default_compile_flags
vector-of-bool 5 anos atrás
pai
commit
7ebe0d70df
1 arquivos alterados com 6 adições e 3 exclusões
  1. +6
    -3
      src/dds/toolchain.cpp

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

@@ -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>",
});

Carregando…
Cancelar
Salvar