diff options
Diffstat (limited to 'scons/generic.py')
-rw-r--r-- | scons/generic.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/scons/generic.py b/scons/generic.py index 2a085ddece..859bf2ae64 100644 --- a/scons/generic.py +++ b/scons/generic.py @@ -336,7 +336,10 @@ def generate(env): cppdefines += [ 'VC_EXTRALEAN', '_USE_MATH_DEFINES', + '_CRT_SECURE_NO_WARNINGS', '_CRT_SECURE_NO_DEPRECATE', + '_SCL_SECURE_NO_WARNINGS', + '_SCL_SECURE_NO_DEPRECATE', ] if debug: cppdefines += ['_DEBUG'] @@ -403,8 +406,6 @@ def generate(env): ccflags += ['-O0', '-g3'] # mingw 4.2.1 optimizer is broken else: ccflags += ['-O3', '-g0'] - if env['profile']: - ccflags += ['-pg'] if env['machine'] == 'x86': ccflags += [ '-m32', @@ -447,11 +448,6 @@ def generate(env): '/Ot', # favor code speed #'/fp:fast', # fast floating point ] - if env['profile']: - ccflags += [ - '/Gh', # enable _penter hook function - '/GH', # enable _pexit hook function - ] ccflags += [ '/W3', # warning level #'/Wp64', # enable 64 bit porting warnings |