Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
set /LARGEADDRESSAWARE
Browse files Browse the repository at this point in the history
This allows 32bit apps on 64bit Windows to use up to 4GB of memory
  • Loading branch information
Adam- committed Jul 23, 2023
1 parent 624b2ce commit f4757f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/native/packr/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ endif()

add_executable(packr WIN32 packr.cpp)
if(WIN32)
set_target_properties(packr PROPERTIES LINK_FLAGS "/LARGEADDRESSAWARE")
target_sources(packr PUBLIC win32/packr_win32.cpp win32/packr_win32.manifest)
set_property(TARGET packr PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded") # multi-threaded statically-linked runtime
elseif(APPLE)
Expand Down

0 comments on commit f4757f6

Please sign in to comment.