Sfoglia il codice sorgente

Fix: Don't add -static runtime flags with built-in toolchains. [Fix #25]

default_compile_flags
vector-of-bool 3 anni fa
parent
commit
ad337f67c3
1 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  1. +0
    -6
      src/dds/toolchain/toolchain.cpp

+ 0
- 6
src/dds/toolchain/toolchain.cpp Vedi File

@@ -275,12 +275,6 @@ std::optional<toolchain> toolchain::get_builtin(std::string_view tc_id) noexcept
return std::nullopt;
}

if (starts_with(tc_id, "gcc") || starts_with(tc_id, "clang")) {
json5::data& arr = root_map.emplace("link_flags", json5::data::array_type()).first->second;
arr.as_array().emplace_back("-static-libgcc");
arr.as_array().emplace_back("-static-libstdc++");
}

root_map.emplace("c_compiler", opt_triple->c);
root_map.emplace("cxx_compiler", opt_triple->cxx);
root_map.emplace("compiler_id", opt_triple->id);

Loading…
Annulla
Salva