Skip to content

Commit

Permalink
Refactor WSIZE configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Jul 24, 2023
1 parent ddd1984 commit 308f100
Show file tree
Hide file tree
Showing 8 changed files with 13,606 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cmake/arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,19 @@ if(WORD AND NOT WSIZE)
endif()

if(NOT WSIZE)
if(ARCH STREQUAL X86 OR ARCH STREQUAL "ARM")
set(AFLAGS "-m32")
set(WSIZE 32)
endif()
# Default is 64 bits.
set(AFLAGS "-m64")
set(WSIZE 64)
if(ARCH STREQUAL "X64" OR ARCH STREQUAL "A64")
set(AFLAGS "-m64")
set(WSIZE 64)
elseif(ARCH STREQUAL X86 OR ARCH STREQUAL "ARM")
set(AFLAGS "-m32")
set(WSIZE 32)
elseif(ARCH STREQUAL "MSP")
set(WSIZE 16)
elseif(ARCH STREQUAL "MSP")
set(WSIZE 8)
endif()
endif()

Expand Down
Loading

0 comments on commit 308f100

Please sign in to comment.