fix debug compile
This commit is contained in:
parent
ab8b72fc0e
commit
1f3083a5a2
3 changed files with 6 additions and 3 deletions
|
@ -84,7 +84,9 @@ CPolyhedron_AllocByNew *CPolyhedron_AllocByNew::Allocate( unsigned short iVertic
|
||||||
(iIndices * sizeof( Polyhedron_IndexedLineReference_t )) +
|
(iIndices * sizeof( Polyhedron_IndexedLineReference_t )) +
|
||||||
(iPolygons * sizeof( Polyhedron_IndexedPolygon_t )));
|
(iPolygons * sizeof( Polyhedron_IndexedPolygon_t )));
|
||||||
|
|
||||||
|
#include "tier0/memdbgoff.h"
|
||||||
CPolyhedron_AllocByNew *pAllocated = new ( pMemory ) CPolyhedron_AllocByNew;
|
CPolyhedron_AllocByNew *pAllocated = new ( pMemory ) CPolyhedron_AllocByNew;
|
||||||
|
#include "tier0/memdbgon.h"
|
||||||
|
|
||||||
pAllocated->iVertexCount = iVertices;
|
pAllocated->iVertexCount = iVertices;
|
||||||
pAllocated->iLineCount = iLines;
|
pAllocated->iLineCount = iLines;
|
||||||
|
|
|
@ -47,7 +47,7 @@ LINKFLAGS = {
|
||||||
CFLAGS = {
|
CFLAGS = {
|
||||||
'common': {
|
'common': {
|
||||||
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP
|
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP
|
||||||
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-', '/MT'],
|
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-'],
|
||||||
'clang': ['-g0', '-fno-strict-aliasing', '-gdwarf-2', '-fvisibility=hidden'],
|
'clang': ['-g0', '-fno-strict-aliasing', '-gdwarf-2', '-fvisibility=hidden'],
|
||||||
'gcc': ['-g0', '-fno-strict-aliasing', '-fvisibility=hidden'],
|
'gcc': ['-g0', '-fno-strict-aliasing', '-fvisibility=hidden'],
|
||||||
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0']
|
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0']
|
||||||
|
@ -81,7 +81,7 @@ CFLAGS = {
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
},
|
},
|
||||||
'nooptimize': {
|
'nooptimize': {
|
||||||
'msvc': ['/Od'],
|
'msvc': ['/Od', '/MT'],
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
3
wscript
3
wscript
|
@ -353,7 +353,8 @@ def configure(conf):
|
||||||
'/INCREMENTAL:NO',
|
'/INCREMENTAL:NO',
|
||||||
'/NODEFAULTLIB:libc',
|
'/NODEFAULTLIB:libc',
|
||||||
'/NODEFAULTLIB:libcd',
|
'/NODEFAULTLIB:libcd',
|
||||||
'/NODEFAULTLIB:libcmt'
|
'/NODEFAULTLIB:libcmt',
|
||||||
|
'/FORCE'
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
linkflags += [
|
linkflags += [
|
||||||
|
|
Loading…
Reference in a new issue