From 30f1e02cda708f849e60f937f45c9d4ed7c17b1d Mon Sep 17 00:00:00 2001 From: SanyaSho <68691958+SanyaSho@users.noreply.github.com> Date: Fri, 28 Apr 2023 19:45:47 +0300 Subject: [PATCH] wscript: use "/LARGEADDRESSAWARE" on windows --- wscript | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/wscript b/wscript index 95871403..352e3209 100644 --- a/wscript +++ b/wscript @@ -514,30 +514,32 @@ def configure(conf): '/TP', '/EHsc' ] - + if conf.options.BUILD_TYPE == 'debug': linkflags += [ '/INCREMENTAL:NO', '/NODEFAULTLIB:libc', '/NODEFAULTLIB:libcd', '/NODEFAULTLIB:libcmt', - '/FORCE' + '/FORCE', + '/LARGEADDRESSAWARE' ] else: linkflags += [ '/INCREMENTAL', '/NODEFAULTLIB:libc', '/NODEFAULTLIB:libcd', - '/NODEFAULTLIB:libcmtd' + '/NODEFAULTLIB:libcmtd', + '/LARGEADDRESSAWARE' ] linkflags += [ '/LIBPATH:'+os.path.abspath('.')+'/lib/win32/'+conf.env.DEST_CPU+'/', '/LIBPATH:'+os.path.abspath('.')+'/dx9sdk/lib/'+conf.env.DEST_CPU+'/' ] - + # And here C++ flags starts to be treated separately - cxxflags = list(cflags) + cxxflags = list(cflags) if conf.env.DEST_OS != 'win32': cxxflags += ['-std=c++11','-fpermissive']