Skip to content

Commit

Permalink
Update nuttx_sethost.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
simbit18 committed Oct 1, 2024
1 parent 3e8e4d1 commit 44ee872
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/nuttx_sethost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,15 @@ function(nuttx_sethost)
if("${NUTTX_BOARD}" STREQUAL "sim")
if(ARCHITECTURE STREQUAL "x86_64")
message(" Select HOST_X86_64=y")
if(CMAKE_HOST_SYSTEM_NAME MATCHES "MSYS|CYGWIN|Windows")
list(APPEND NUTTX_SYSTEM_SETHOST "HOST_X86_64=y")
if(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux|Darwin|FreeBSD")
# Enable the System V ABI
list(APPEND NUTTX_SYSTEM_SETHOST "SIM_X8664_SYSTEMV=y")
elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "MSYS|CYGWIN|Windows")
# Enable Microsoft ABI and the System V ABI
list(APPEND NUTTX_SYSTEM_SETHOST "SIM_X8664_SYSTEMV=y")
list(APPEND NUTTX_SYSTEM_SETHOST "SIM_X8664_MICROSOFT=y")
endif()
list(APPEND NUTTX_SYSTEM_SETHOST "HOST_X86_64=y")
elseif(ARCHITECTURE STREQUAL "x86")
message(" Select HOST_X86=y")
list(APPEND NUTTX_SYSTEM_SETHOST "HOST_X86=y")
Expand Down

0 comments on commit 44ee872

Please sign in to comment.