authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-20 11:06:23+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-05 14:54:30+02:00
log3dce9fe636b7cb028f0425b463a19ab1dba9942c
tree1703a9676f0482dac58dff502553e31a5a11bcd6
parent372b13b9de9e06afc6682859950fbeee75767722
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

cmake: remove workaround for Clang crash on s390x

https://github.com/llvm/llvm-project/pull/215027

1 files changed, 0 insertions(+), 3 deletions(-)

CMakeLists.txt-3
......@@ -615,9 +615,6 @@ else()
615615 set(ZIG_WASM2C_COMPILE_FLAGS "-std=c99")
616616 set(ZIG1_COMPILE_FLAGS "-std=c99 -Oz -fno-strict-aliasing")
617617 set(ZIG2_COMPILE_FLAGS "-std=c99 -Oz -fno-sanitize=undefined -fno-stack-protector -fno-strict-aliasing")
618 if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND ZIG_HOST_TARGET_ARCH STREQUAL "s390x")
619 string(REPLACE -Oz -O0 ZIG2_COMPILE_FLAGS "${ZIG2_COMPILE_FLAGS}") # llvm 22 assertion failure
620 endif()
621618 # Must match the condition in build.zig.
622619 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)?$")
623620 set(ZIG1_COMPILE_FLAGS "${ZIG1_COMPILE_FLAGS} -ffunction-sections -fdata-sections")