浏览代码

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);

正在加载...
取消
保存