Преглед изворни кода

Builtin-toolchain prefix for debug

default_compile_flags
vector-of-bool пре 5 година
родитељ
комит
e7c1be5e6a
1 измењених фајлова са 5 додато и 0 уклоњено
  1. +5
    -0
      src/dds/toolchain/toolchain.cpp

+ 5
- 0
src/dds/toolchain/toolchain.cpp Прегледај датотеку

@@ -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…
Откажи
Сачувај