From 3e4ded6fe2a3ea85b72c27a1a312705060aa9912 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Thu, 30 Jul 2026 08:41:31 +0000 Subject: [PATCH 3/3] [tapi] Add ppc/ppc64 to KNOWN_ARCHS so the build configures TAPI_SUPPORTED_ARCHS is validated against a hardcoded KNOWN_ARCHS list in src/tapi/CMakeLists.txt. Passing -DTAPI_SUPPORTED_ARCHS="ppc;ppc64" (as the PowerPC port does) is not sufficient on its own: ppc is not in KNOWN_ARCHS, so the foreach validation loop aborts configuration with "unknown architecture: ppc" before any build starts. Add ppc and ppc64 to KNOWN_ARCHS. This lets configuration succeed and emits the (otherwise vestigial) SUPPORT_ARCH_PPC/PPC64 defines into the generated ArchitectureConfig.h. Note that in this 1600.x tree neither TAPI_SUPPORTED_ARCHS nor ArchitectureConfig.h gates any runtime code path - the readers accept whatever getArchitectureFromCpuType() returns, which already knows ppc/ppc64 from LLVM's TextAPI Architecture.def - so this change only unblocks the configure-time validation. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01PrKAYGVW1tzwQAAoTGXVfM --- src/tapi/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tapi/CMakeLists.txt b/src/tapi/CMakeLists.txt index 927e483..4910ee0 100644 --- a/src/tapi/CMakeLists.txt +++ b/src/tapi/CMakeLists.txt @@ -42,7 +42,7 @@ elseif(NOT DEFINED TAPI_SUPPORTED_ARCHS) endif() message(STATUS "Supported Architectures: ${TAPI_SUPPORTED_ARCHS}") -set(KNOWN_ARCHS i386 x86_64 x86_64h armv4t armv6 armv5 armv7 armv7s armv7k armv6m armv7m armv7em arm64) +set(KNOWN_ARCHS ppc ppc64 i386 x86_64 x86_64h armv4t armv6 armv5 armv7 armv7s armv7k armv6m armv7m armv7em arm64) set (CONFIG_FILE ${CMAKE_CURRENT_BINARY_DIR}/include/tapi/Core/ArchitectureConfig.h) file(WRITE ${CONFIG_FILE} "#ifndef TAPI_CORE_ARCHITECTURE_CONFIG_H\n") -- 2.43.0