mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-02 08:51:57 +00:00
Merge pull request #1 from DanielGibson/rb_static-rt
Use static runtime, remove 2 annoying assertions
This commit is contained in:
commit
585a04dfe4
2 changed files with 16 additions and 10 deletions
|
@ -24,6 +24,12 @@ elseif(MSVC)
|
|||
# Multiprocessor support for compiling
|
||||
# /MP
|
||||
|
||||
# /MT use multithreaded, static runtime library
|
||||
# (=> binary won't need MSVCP100D.dll or similar)
|
||||
# /MTd the same with debug symbols
|
||||
# /MD and /MDd - the same with dynamic runtime lib
|
||||
# (=> MSVCP100D.dll or similar is needed to run binary)
|
||||
|
||||
# Inline Function Expansion: Any Suitable (/Ob2)
|
||||
# "/Ob2",
|
||||
|
||||
|
@ -33,15 +39,15 @@ elseif(MSVC)
|
|||
# Omit Frame Pointers
|
||||
# "/Oy",
|
||||
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /D _DEBUG /MP")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MP /Oi /Oy")
|
||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} /MP /Oi")
|
||||
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} /MP /Oi /Oy")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /D _DEBUG /MP /MTd")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MP /Oi /Oy /MT")
|
||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} /MP /Oi /MTd")
|
||||
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} /MP /Oi /Oy /MT")
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MP")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MP /Oi /Oy")
|
||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MP")
|
||||
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MP /Oi /Oy")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MP /MTd")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MP /Oi /Oy /MT")
|
||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MP /MTd")
|
||||
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MP /Oi /Oy /MT")
|
||||
|
||||
add_definitions(-DWIN32
|
||||
-D_WINDOWS
|
||||
|
|
|
@ -343,7 +343,7 @@ void* idVertexBuffer::MapBuffer( bufferMapType_t mapType ) const
|
|||
{
|
||||
buffer = ( byte* )buffer + GetOffset();
|
||||
}
|
||||
assert( IsWriteCombined( buffer ) );
|
||||
// assert( IsWriteCombined( buffer ) ); // commented out because it spams the console
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -619,7 +619,7 @@ void* idIndexBuffer::MapBuffer( bufferMapType_t mapType ) const
|
|||
{
|
||||
buffer = ( byte* )buffer + GetOffset();
|
||||
}
|
||||
assert( IsWriteCombined( buffer ) );
|
||||
// assert( IsWriteCombined( buffer ) ); // commented out because it spams the console
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue