Sfoglia il codice sorgente

Builtin-toolchain prefix for debug

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

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

@@ -139,6 +139,11 @@ std::optional<toolchain> toolchain::get_builtin(std::string_view tc_id) noexcept

std::string tc_content;

if (starts_with(tc_id, "debug:")) {
tc_id = tc_id.substr("debug:"sv.length());
tc_content += "Debug: True\n";
}

if (starts_with(tc_id, "ccache:")) {
tc_id = tc_id.substr("ccache:"sv.length());
tc_content += "Compiler-Launcher: ccache\n";

Loading…
Annulla
Salva