Browse Source

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

default_compile_flags
vector-of-bool 4 years ago
parent
commit
7f3dad4dfc
2 changed files with 4 additions and 4 deletions
  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 View File

@@ -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 View File

@@ -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…
Cancel
Save