Ver código fonte

Formatting tweaks

default_compile_flags
vector-of-bool 5 anos atrás
pai
commit
88b0579add
2 arquivos alterados com 5 adições e 9 exclusões
  1. +3
    -1
      src/dds/proc.nix.cpp
  2. +2
    -8
      src/dds/toolchain.cpp

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

::execvp(strings[0], (char* const*)strings.data()); ::execvp(strings[0], (char* const*)strings.data());


if (errno == ENOENT) { 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); std::exit(-1);
} }



+ 2
- 8
src/dds/toolchain.cpp Ver arquivo

ret._inc_template = {"/I<PATH>"}; ret._inc_template = {"/I<PATH>"};
ret._def_template = {"/D<DEF>"}; ret._def_template = {"/D<DEF>"};
ret._c_compile = {"cl.exe", "/nologo", "<FLAGS>", "/c", "<IN>", "/Fo<OUT>"}; 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"}; std::vector<std::string_view> common_flags = {"/Z7", "/O2", "/MT", "/DEBUG"};
extend(ret._c_compile, common_flags); extend(ret._c_compile, common_flags);
extend(ret._cxx_compile, common_flags); extend(ret._cxx_compile, common_flags);

Carregando…
Cancelar
Salvar