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

if (debug_bool == true || debug_str == "embedded") { if (debug_bool == true || debug_str == "embedded") {
return {"/Z7"}; return {"/Z7"};
} else if (debug_str == "split") { } else if (debug_str == "split") {
return {"/Zi"};
return {"/Zi", "/FS"};
} else { } else {
// Do not generate any debug infro // Do not generate any debug infro
return {}; return {};

+ 3
- 3
src/dds/toolchain/from_json.test.cpp View File



check_tc_compile( check_tc_compile(
"{compiler_id: 'msvc', debug: 'split'}", "{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", "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( check_tc_compile(
"{compiler_id: 'msvc', flags: '-DFOO'}", "{compiler_id: 'msvc', flags: '-DFOO'}",

Loading…
Cancel
Save