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")