Skip to content

Commit bfa16ec

Browse files
committed
Set /LARGEADDRESSAWARE flag for Win32 builds
Idea from Kosta-Github (pull-request danmar#501)
1 parent a5b6333 commit bfa16ec

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

cli/cli.vcxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
<SubSystem>Console</SubSystem>
174174
<SuppressStartupBanner>true</SuppressStartupBanner>
175175
<ProgramDatabaseFile>$(TargetDir)cli.pdb</ProgramDatabaseFile>
176+
<LargeAddressAware>true</LargeAddressAware>
176177
</Link>
177178
</ItemDefinitionGroup>
178179
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-PCRE|Win32'">
@@ -195,6 +196,7 @@
195196
<GenerateDebugInformation>true</GenerateDebugInformation>
196197
<SubSystem>Console</SubSystem>
197198
<SuppressStartupBanner>true</SuppressStartupBanner>
199+
<LargeAddressAware>true</LargeAddressAware>
198200
</Link>
199201
</ItemDefinitionGroup>
200202
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -267,6 +269,7 @@
267269
<OptimizeReferences>true</OptimizeReferences>
268270
<EnableCOMDATFolding>true</EnableCOMDATFolding>
269271
<SetChecksum>true</SetChecksum>
272+
<LargeAddressAware>true</LargeAddressAware>
270273
</Link>
271274
</ItemDefinitionGroup>
272275
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-PCRE|Win32'">
@@ -297,6 +300,7 @@
297300
<OptimizeReferences>true</OptimizeReferences>
298301
<EnableCOMDATFolding>true</EnableCOMDATFolding>
299302
<SetChecksum>true</SetChecksum>
303+
<LargeAddressAware>true</LargeAddressAware>
300304
</Link>
301305
</ItemDefinitionGroup>
302306
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">

lib/cppcheck.vcxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@
265265
<GenerateDebugInformation>true</GenerateDebugInformation>
266266
<SuppressStartupBanner>true</SuppressStartupBanner>
267267
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
268+
<LargeAddressAware>true</LargeAddressAware>
268269
</Link>
269270
<PostBuildEvent>
270271
<Command>xcopy "$(SolutionDir)cfg" "$(OutDir)cfg" /E /I /D /Y</Command>
@@ -286,6 +287,7 @@
286287
<AdditionalLibraryDirectories>../externals;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
287288
<GenerateDebugInformation>true</GenerateDebugInformation>
288289
<SuppressStartupBanner>true</SuppressStartupBanner>
290+
<LargeAddressAware>true</LargeAddressAware>
289291
</Link>
290292
<PostBuildEvent>
291293
<Command>xcopy "$(SolutionDir)cfg" "$(OutDir)cfg" /E /I /D /Y</Command>
@@ -356,6 +358,7 @@
356358
<OptimizeReferences>true</OptimizeReferences>
357359
<EnableCOMDATFolding>true</EnableCOMDATFolding>
358360
<SetChecksum>true</SetChecksum>
361+
<LargeAddressAware>true</LargeAddressAware>
359362
</Link>
360363
<PostBuildEvent>
361364
<Command>xcopy "$(SolutionDir)cfg" "$(OutDir)cfg" /E /I /D /Y</Command>
@@ -386,6 +389,7 @@
386389
<OptimizeReferences>true</OptimizeReferences>
387390
<EnableCOMDATFolding>true</EnableCOMDATFolding>
388391
<SetChecksum>true</SetChecksum>
392+
<LargeAddressAware>true</LargeAddressAware>
389393
</Link>
390394
<PostBuildEvent>
391395
<Command>xcopy "$(SolutionDir)cfg" "$(OutDir)cfg" /E /I /D /Y</Command>

test/testrunner.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@
188188
<GenerateDebugInformation>true</GenerateDebugInformation>
189189
<SubSystem>Console</SubSystem>
190190
<SuppressStartupBanner>true</SuppressStartupBanner>
191+
<LargeAddressAware>true</LargeAddressAware>
191192
</Link>
192193
</ItemDefinitionGroup>
193194
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -246,6 +247,7 @@
246247
<OptimizeReferences>true</OptimizeReferences>
247248
<EnableCOMDATFolding>true</EnableCOMDATFolding>
248249
<SetChecksum>true</SetChecksum>
250+
<LargeAddressAware>true</LargeAddressAware>
249251
</Link>
250252
</ItemDefinitionGroup>
251253
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">

0 commit comments

Comments
 (0)