浏览代码

Link to stdc++fs in default gcc toolchain

default_compile_flags
vector-of-bool 5 年前
父节点
当前提交
7ebe0d70df
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. +6
    -3
      src/dds/toolchain.cpp

+ 6
- 3
src/dds/toolchain.cpp 查看文件

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

正在加载...
取消
保存