This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 21501f65b1b20031ebf35637f99c0909e9da7f07
Author: chenxiaoyi <[email protected]>
AuthorDate: Tue Jul 9 10:01:47 2024 +0800

    sim: add link option /LARGEADDRESSAWARE:NO for windows64
    
    Signed-off-by: chenxiaoyi <[email protected]>
---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 702215b1a6..08e5bc8c09 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -667,6 +667,9 @@ elseif(WIN32)
        "${CONFIG_SIM_STACKSIZE_ADJUSTMENT} + ${CONFIG_IDLETHREAD_STACKSIZE}"
        OUTPUT_FORMAT DECIMAL)
   target_link_options(nuttx PUBLIC /STACK:${LINK_STACKSIZE},${LINK_STACKSIZE})
+  if("${CMAKE_GENERATOR_PLATFORM}" STREQUAL "x64")
+    target_link_options(nuttx PUBLIC /LARGEADDRESSAWARE:NO)
+  endif()
   set(nuttx_libs_paths)
   foreach(lib ${nuttx_libs})
     list(APPEND nuttx_libs_paths $<TARGET_FILE:${lib}>)

Reply via email to