소스 검색

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…
취소
저장