Browse Source

fix debug compile

pull/85/head
HappyDOGE 2 years ago
parent
commit
9dbdad3dc4
  1. 2
      mathlib/polyhedron.cpp
  2. 4
      scripts/waifulib/compiler_optimizations.py
  3. 3
      wscript

2
mathlib/polyhedron.cpp

@ -84,7 +84,9 @@ CPolyhedron_AllocByNew *CPolyhedron_AllocByNew::Allocate( unsigned short iVertic @@ -84,7 +84,9 @@ CPolyhedron_AllocByNew *CPolyhedron_AllocByNew::Allocate( unsigned short iVertic
(iIndices * sizeof( Polyhedron_IndexedLineReference_t )) +
(iPolygons * sizeof( Polyhedron_IndexedPolygon_t )));
#include "tier0/memdbgoff.h"
CPolyhedron_AllocByNew *pAllocated = new ( pMemory ) CPolyhedron_AllocByNew;
#include "tier0/memdbgon.h"
pAllocated->iVertexCount = iVertices;
pAllocated->iLineCount = iLines;

4
scripts/waifulib/compiler_optimizations.py

@ -47,7 +47,7 @@ LINKFLAGS = { @@ -47,7 +47,7 @@ LINKFLAGS = {
CFLAGS = {
'common': {
# 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'],
'gcc': ['-g0', '-fno-strict-aliasing', '-fvisibility=hidden'],
'owcc': ['-fno-short-enum', '-ffloat-store', '-g0']
@ -81,7 +81,7 @@ CFLAGS = { @@ -81,7 +81,7 @@ CFLAGS = {
'default': ['-O0']
},
'nooptimize': {
'msvc': ['/Od'],
'msvc': ['/Od', '/MT'],
'default': ['-O0']
}
}

3
wscript

@ -353,7 +353,8 @@ def configure(conf): @@ -353,7 +353,8 @@ def configure(conf):
'/INCREMENTAL:NO',
'/NODEFAULTLIB:libc',
'/NODEFAULTLIB:libcd',
'/NODEFAULTLIB:libcmt'
'/NODEFAULTLIB:libcmt',
'/FORCE'
]
else:
linkflags += [

Loading…
Cancel
Save