From 9a726ee147b01dda003fba5d04d5560ea145c71c Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 19 Aug 2021 19:33:15 +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..f7b096cf5 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 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()