Skip to content

Commit

Permalink
Default arch for WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Nov 9, 2024
1 parent 2c9402e commit b3583a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/CompilerAndLinker.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Aa][Rr][Mm]64$")
set(DIRECTX_ARCH arm64)
elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Aa][Rr][Mm]64EC$")
set(DIRECTX_ARCH arm64ec)
elseif((NOT (DEFINED DIRECTX_ARCH)) AND (CMAKE_SYSTEM_NAME STREQUAL "Linux"))
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
set(DIRECTX_ARCH x64)
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
set(DIRECTX_ARCH arm64)
endif()
endif()

#--- Determines host architecture
Expand Down

0 comments on commit b3583a5

Please sign in to comment.