From ba5ee1929ce03a31838d4623d6aef614e5903a4e Mon Sep 17 00:00:00 2001 From: chenxiaoyi Date: Tue, 9 Jul 2024 10:01:47 +0800 Subject: [PATCH] sim: add link option /LARGEADDRESSAWARE:NO for windows64 Signed-off-by: chenxiaoyi --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b11486ef62..4a3c52fa15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -652,6 +652,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 $)