Explorar el Código

Builtin-toolchain prefix for debug

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

+ 5
- 0
src/dds/toolchain/toolchain.cpp Ver fichero

@@ -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";

Cargando…
Cancelar
Guardar