Skip to content

Commit 5ffb3ca

Browse files
Better MSVC compiler flags.
1 parent 931a831 commit 5ffb3ca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

csb.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33787,7 +33787,7 @@ namespace csp
3378733787
inline void unmount(const std::string &name) { mappings().erase(name); }
3378833788
}
3378933789

33790-
// CSB 2.3.1
33790+
// CSB 2.3.2
3379133791

3379233792
#include <algorithm>
3379333793
#include <array>
@@ -37268,7 +37268,7 @@ namespace csb
3726837268

3726937269
if (host_platform == WINDOWS)
3727037270
{
37271-
std::string compile_debug_flags{target_configuration == RELEASE ? "/O2 /bigobj " : "/Od /Zi /RTC1 /bigobj "};
37271+
std::string compile_debug_flags{target_configuration == RELEASE ? "/O2 " : "/Od /Zi /RTC1 "};
3727237272
std::string runtime_library{target_linkage == STATIC ? (target_configuration == RELEASE ? "MT" : "MTd")
3727337273
: (target_configuration == RELEASE ? "MD" : "MDd")};
3727437274
std::string compile_definitions{"/D_WIN32 "};
@@ -37358,7 +37358,7 @@ namespace csb
3735837358
compiler = "cl /std:c17 /TC";
3735937359
else
3736037360
compiler = "cl /std:c++" + std::to_string(cxx_standard);
37361-
return std::format("{} /nologo /W{} /external:W0 {}/EHsc /MP /{} {}/ifcOutput{}\\ /Fo{}\\ /Fd\"{}\" "
37361+
return std::format("{} /nologo /W{} /external:W0 {}/bigobj /Zc:preprocessor /EHsc /MP /{} {}/ifcOutput{}\\ /Fo{}\\ /Fd\"{}\" "
3736237362
"/sourceDependencies\"{}\" {}{}/c /Yc\"{}\" /Fp\"{}\" \"{}\"",
3736337363
compiler, std::to_string(warning_level), compile_debug_flags, runtime_library,
3736437364
compile_definitions, pch_directory.string(), pch_directory.string(),
@@ -37408,7 +37408,7 @@ namespace csb
3740837408
compiler = "cl /std:c17 /TC";
3740937409
else
3741037410
compiler = "cl /std:c++" + std::to_string(cxx_standard);
37411-
return std::format("{} /nologo /W{} /external:W0 {}/EHsc /MP /{} {}/ifcOutput{}\\ /Fo{}\\ /Fd\"{}\" "
37411+
return std::format("{} /nologo /W{} /external:W0 {}/bigobj /Zc:preprocessor /EHsc /MP /{} {}/ifcOutput{}\\ /Fo{}\\ /Fd\"{}\" "
3741237412
"/sourceDependencies\"{}\" {}{}/c {}\"()\"",
3741337413
compiler, std::to_string(warning_level), compile_debug_flags, runtime_library,
3741437414
compile_definitions, utility::build_directory.string(), utility::build_directory.string(),

0 commit comments

Comments
 (0)