ソースを参照

Formatting tweaks

default_compile_flags
vector-of-bool 5年前
コミット
88b0579add
2個のファイルの変更5行の追加9行の削除
  1. +3
    -1
      src/dds/proc.nix.cpp
  2. +2
    -8
      src/dds/toolchain.cpp

+ 3
- 1
src/dds/proc.nix.cpp ファイルの表示

@@ -45,7 +45,9 @@ spawn_child(const std::vector<std::string>& command, int stdout_pipe, int close_
::execvp(strings[0], (char* const*)strings.data());

if (errno == ENOENT) {
std::cerr << fmt::format("[ddslim child executor] The requested executable ({}) could not be found.", strings[0]);
std::cerr << fmt::
format("[ddslim child executor] The requested executable ({}) could not be found.",
strings[0]);
std::exit(-1);
}


+ 2
- 8
src/dds/toolchain.cpp ファイルの表示

@@ -324,14 +324,8 @@ std::optional<toolchain> toolchain::get_builtin(std::string_view s) noexcept {
ret._inc_template = {"/I<PATH>"};
ret._def_template = {"/D<DEF>"};
ret._c_compile = {"cl.exe", "/nologo", "<FLAGS>", "/c", "<IN>", "/Fo<OUT>"};
ret._cxx_compile = {"cl.exe",
"/nologo",
"<FLAGS>",
"/std:c++latest",
"/EHsc",
"/c",
"<IN>",
"/Fo<OUT>"};
ret._cxx_compile
= {"cl.exe", "/nologo", "<FLAGS>", "/std:c++latest", "/EHsc", "/c", "<IN>", "/Fo<OUT>"};
std::vector<std::string_view> common_flags = {"/Z7", "/O2", "/MT", "/DEBUG"};
extend(ret._c_compile, common_flags);
extend(ret._cxx_compile, common_flags);

読み込み中…
キャンセル
保存