瀏覽代碼

/FS is required for parallel access to a separate .pdb file

default_compile_flags
vector-of-bool 4 年之前
父節點
當前提交
7f3dad4dfc
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. +1
    -1
      src/dds/toolchain/from_json.cpp
  2. +3
    -3
      src/dds/toolchain/from_json.test.cpp

+ 1
- 1
src/dds/toolchain/from_json.cpp 查看文件

@@ -473,7 +473,7 @@ toolchain dds::parse_toolchain_json_data(const json5::data& dat, std::string_vie
if (debug_bool == true || debug_str == "embedded") {
return {"/Z7"};
} else if (debug_str == "split") {
return {"/Zi"};
return {"/Zi", "/FS"};
} else {
// Do not generate any debug infro
return {};

+ 3
- 3
src/dds/toolchain/from_json.test.cpp 查看文件

@@ -99,10 +99,10 @@ TEST_CASE("Generating toolchain commands") {

check_tc_compile(
"{compiler_id: 'msvc', debug: 'split'}",
"cl.exe /MTd /Zi /EHsc /nologo /permissive- /showIncludes /c foo.cpp /Fofoo.o",
"cl.exe /MTd /Zi /EHsc /nologo /permissive- /W4 /showIncludes /c foo.cpp /Fofoo.o",
"cl.exe /MTd /Zi /FS /EHsc /nologo /permissive- /showIncludes /c foo.cpp /Fofoo.o",
"cl.exe /MTd /Zi /FS /EHsc /nologo /permissive- /W4 /showIncludes /c foo.cpp /Fofoo.o",
"lib /nologo /OUT:stuff.a foo.o bar.o",
"cl.exe /nologo /EHsc foo.o bar.a /Femeow.exe /MTd /Zi");
"cl.exe /nologo /EHsc foo.o bar.a /Femeow.exe /MTd /Zi /FS");

check_tc_compile(
"{compiler_id: 'msvc', flags: '-DFOO'}",

Loading…
取消
儲存