Skip to content

Commit

Permalink
Make sure AFLAGS are always accessible by parent across CMake reruns.
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineKhaldi committed Aug 19, 2021
1 parent 1f62f58 commit 9a726ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ endif()

if(NOT WSIZE)
if(ARCH STREQUAL X86)
set(AFLAGS "-m32")
set(AFLAGS "-m32" CACHE INTERNAL "Architecture flags")
set(WSIZE 32)
endif()
if(ARCH STREQUAL X64)
set(AFLAGS "-m64")
set(AFLAGS "-m64" CACHE INTERNAL "Architecture flags")
set(WSIZE 64)
endif()
endif()
Expand Down

0 comments on commit 9a726ee

Please sign in to comment.