Skip to content

Commit

Permalink
forward-port of #7615
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Feb 18, 2024
1 parent 07c62c7 commit 9967700
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,14 @@ if (WIN32)
)
target_compile_options(torrent-rasterbar
PRIVATE
# allow larger .obj files (with more sections)
/bigobj
# https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170
/permissive-
# https://docs.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-170
/utf-8
# https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
/Zc:__cplusplus
/MP # for multi-core compilation
/bigobj # increase the number of sections for obj files
)
set_target_properties(torrent-rasterbar PROPERTIES LINK_FLAGS_RELEASE "/OPT:ICF=5 /OPT:REF")
endif()
Expand Down
2 changes: 2 additions & 0 deletions Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ rule building ( properties * )
{
# allow larger .obj files (with more sections)
result += <cxxflags>/bigobj ;
# https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170
result += <cxxflags>/permissive- ;
# https://docs.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-170
result += <cxxflags>/utf-8 ;
}
Expand Down

0 comments on commit 9967700

Please sign in to comment.