From c5d5c771bcf47f251e64db046846eb172915920f Mon Sep 17 00:00:00 2001 From: Stian Halseth Date: Mon, 2 Nov 2026 15:25:04 +0100 Subject: [PATCH] Add sparc64 to the CMake architecture list The CMake build selects the fcontext assembly by interpolating BOOST_CONTEXT_ARCHITECTURE into the source name, and sparc64 was not among the recognized values, so a CMake build on sparc64 fell through to the 64-bit default of x86_64 and failed to assemble. CMAKE_SYSTEM_PROCESSOR is "sparc64" there, which matches the existing *_sparc64_sysv_elf_gas.S sources, so listing it in _all_archs is enough. The remaining defaults are sysv, elf and gas. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d96606c..a5f5ee76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,7 @@ unset(_default_abi) ## Arch-and-model -set(_all_archs alpha arm arm64 e2k loongarch64 mips32 mips64 ppc32 ppc64 riscv64 s390x i386 x86_64 combined) +set(_all_archs alpha arm arm64 e2k loongarch64 mips32 mips64 ppc32 ppc64 riscv64 s390x sparc64 i386 x86_64 combined) # Try at start to auto determine arch from CMake. if(CMAKE_SYSTEM_PROCESSOR IN_LIST _all_archs) @@ -80,7 +80,7 @@ else() endif() endif() -set(BOOST_CONTEXT_ARCHITECTURE "${_default_arch}" CACHE STRING "Boost.Context architecture (alpha, arm, arm64, e2k, loongarch64, mips32, mips64, ppc32, ppc64, riscv64, s390x, i386, x86_64, combined)") +set(BOOST_CONTEXT_ARCHITECTURE "${_default_arch}" CACHE STRING "Boost.Context architecture (alpha, arm, arm64, e2k, loongarch64, mips32, mips64, ppc32, ppc64, riscv64, s390x, sparc64, i386, x86_64, combined)") set_property(CACHE BOOST_CONTEXT_ARCHITECTURE PROPERTY STRINGS ${_all_archs}) unset(_all_archs)