Skip to content

Commit 37c51bb

Browse files
committed
Make sure AFLAGS are always accessible by parent across CMake reruns.
1 parent 1f62f58 commit 37c51bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/arch.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ endif()
3535

3636
if(NOT WSIZE)
3737
if(ARCH STREQUAL X86)
38-
set(AFLAGS "-m32")
38+
set(AFLAGS "-m32" CACHE STRING "Architecture flags")
3939
set(WSIZE 32)
4040
endif()
4141
if(ARCH STREQUAL X64)
42-
set(AFLAGS "-m64")
42+
set(AFLAGS "-m64" CACHE STRING "Architecture flags")
4343
set(WSIZE 64)
4444
endif()
4545
endif()

0 commit comments

Comments
 (0)