| ... | @@ -615,9 +615,6 @@ else() | ... | @@ -615,9 +615,6 @@ else() |
| 615 | set(ZIG_WASM2C_COMPILE_FLAGS "-std=c99") | 615 | set(ZIG_WASM2C_COMPILE_FLAGS "-std=c99") |
| 616 | set(ZIG1_COMPILE_FLAGS "-std=c99 -Oz -fno-strict-aliasing") | 616 | set(ZIG1_COMPILE_FLAGS "-std=c99 -Oz -fno-strict-aliasing") |
| 617 | set(ZIG2_COMPILE_FLAGS "-std=c99 -Oz -fno-sanitize=undefined -fno-stack-protector -fno-strict-aliasing") | 617 | 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() | | |
| 621 | # Must match the condition in build.zig. | 618 | # Must match the condition in build.zig. |
| 622 | 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)?$") | 619 | 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)?$") |
| 623 | set(ZIG1_COMPILE_FLAGS "${ZIG1_COMPILE_FLAGS} -ffunction-sections -fdata-sections") | 620 | set(ZIG1_COMPILE_FLAGS "${ZIG1_COMPILE_FLAGS} -ffunction-sections -fdata-sections") |