Explorar el Código

Formatting tweaks

default_compile_flags
vector-of-bool hace 5 años
padre
commit
88b0579add
Se han modificado 2 ficheros con 5 adiciones y 9 borrados
  1. +3
    -1
      src/dds/proc.nix.cpp
  2. +2
    -8
      src/dds/toolchain.cpp

+ 3
- 1
src/dds/proc.nix.cpp Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar