wscript: use "/LARGEADDRESSAWARE" on windows
This commit is contained in:
parent
823e437005
commit
30f1e02cda
1 changed files with 7 additions and 5 deletions
12
wscript
12
wscript
|
@ -514,30 +514,32 @@ def configure(conf):
|
||||||
'/TP',
|
'/TP',
|
||||||
'/EHsc'
|
'/EHsc'
|
||||||
]
|
]
|
||||||
|
|
||||||
if conf.options.BUILD_TYPE == 'debug':
|
if conf.options.BUILD_TYPE == 'debug':
|
||||||
linkflags += [
|
linkflags += [
|
||||||
'/INCREMENTAL:NO',
|
'/INCREMENTAL:NO',
|
||||||
'/NODEFAULTLIB:libc',
|
'/NODEFAULTLIB:libc',
|
||||||
'/NODEFAULTLIB:libcd',
|
'/NODEFAULTLIB:libcd',
|
||||||
'/NODEFAULTLIB:libcmt',
|
'/NODEFAULTLIB:libcmt',
|
||||||
'/FORCE'
|
'/FORCE',
|
||||||
|
'/LARGEADDRESSAWARE'
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
linkflags += [
|
linkflags += [
|
||||||
'/INCREMENTAL',
|
'/INCREMENTAL',
|
||||||
'/NODEFAULTLIB:libc',
|
'/NODEFAULTLIB:libc',
|
||||||
'/NODEFAULTLIB:libcd',
|
'/NODEFAULTLIB:libcd',
|
||||||
'/NODEFAULTLIB:libcmtd'
|
'/NODEFAULTLIB:libcmtd',
|
||||||
|
'/LARGEADDRESSAWARE'
|
||||||
]
|
]
|
||||||
|
|
||||||
linkflags += [
|
linkflags += [
|
||||||
'/LIBPATH:'+os.path.abspath('.')+'/lib/win32/'+conf.env.DEST_CPU+'/',
|
'/LIBPATH:'+os.path.abspath('.')+'/lib/win32/'+conf.env.DEST_CPU+'/',
|
||||||
'/LIBPATH:'+os.path.abspath('.')+'/dx9sdk/lib/'+conf.env.DEST_CPU+'/'
|
'/LIBPATH:'+os.path.abspath('.')+'/dx9sdk/lib/'+conf.env.DEST_CPU+'/'
|
||||||
]
|
]
|
||||||
|
|
||||||
# And here C++ flags starts to be treated separately
|
# And here C++ flags starts to be treated separately
|
||||||
cxxflags = list(cflags)
|
cxxflags = list(cflags)
|
||||||
if conf.env.DEST_OS != 'win32':
|
if conf.env.DEST_OS != 'win32':
|
||||||
cxxflags += ['-std=c++11','-fpermissive']
|
cxxflags += ['-std=c++11','-fpermissive']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue