From 37c51bb7d8737912a23a732a8c7143e5be1d119d Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 19 Aug 2021 19:03:09 +0100 Subject: [PATCH] Make sure AFLAGS are always accessible by parent across CMake reruns. --- cmake/arch.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/arch.cmake b/cmake/arch.cmake index 0b9df7e28..29def9d7a 100644 --- a/cmake/arch.cmake +++ b/cmake/arch.cmake @@ -35,11 +35,11 @@ endif() if(NOT WSIZE) if(ARCH STREQUAL X86) - set(AFLAGS "-m32") + set(AFLAGS "-m32" CACHE STRING "Architecture flags") set(WSIZE 32) endif() if(ARCH STREQUAL X64) - set(AFLAGS "-m64") + set(AFLAGS "-m64" CACHE STRING "Architecture flags") set(WSIZE 64) endif() endif()