From cc3b6ab1a88e1b7702c4ea5a8dbb87011834b917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 20 Aug 2026 11:06:23 +0200 Subject: [PATCH] cmake: remove workaround for Clang crash on s390x https://github.com/llvm/llvm-project/pull/215027 --- CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f2456afc6ff46311ca09cac2561a2fbdb0d3304..dbd35922c8bad0c4e218a7d5593e30dcba8cb9a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -614,9 +614,6 @@ else() set(ZIG_WASM2C_COMPILE_FLAGS "-std=c99") set(ZIG1_COMPILE_FLAGS "-std=c99 -Oz -fno-strict-aliasing") set(ZIG2_COMPILE_FLAGS "-std=c99 -Oz -fno-sanitize=undefined -fno-stack-protector -fno-strict-aliasing") - if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND ZIG_HOST_TARGET_ARCH STREQUAL "s390x") - string(REPLACE -Oz -O0 ZIG2_COMPILE_FLAGS "${ZIG2_COMPILE_FLAGS}") # llvm 22 assertion failure - endif() # Must match the condition in build.zig. if(ZIG_HOST_TARGET_ARCH MATCHES "^(arm|thumb)(eb)?$" OR ZIG_HOST_TARGET_ARCH EQUAL "hexagon" OR ZIG_HOST_TARGET_ARCH MATCHES "^powerpc(64)?(le)?$") set(ZIG1_COMPILE_FLAGS "${ZIG1_COMPILE_FLAGS} -ffunction-sections -fdata-sections") -- 2.54.0