diff --git a/src/libunwind.zig b/src/libunwind.zig index 2fe8b5e2837f254aa7844253b1473fae8fa46e1b..11666eec3c9118e38a4fc06d396cd61a457574dd 100644 --- a/src/libunwind.zig +++ b/src/libunwind.zig @@ -109,7 +109,8 @@ pub fn buildStaticLib(comp: *Compilation) !void { .want_tsan = false, .want_pic = comp.bin_file.options.pic, .want_pie = comp.bin_file.options.pie, - .want_lto = comp.bin_file.options.lto, + // Disable LTO to avoid https://github.com/llvm/llvm-project/issues/56825 + .want_lto = false, .function_sections = comp.bin_file.options.function_sections, .emit_h = null, .strip = comp.compilerRtStrip(), diff --git a/test/standalone/c_compiler/build.zig b/test/standalone/c_compiler/build.zig index 5d51d2c651ba2516e47d0b30b54f852befcfccb8..240d53518204e3928406dd59bec94d41d9b1f7a5 100644 --- a/test/standalone/c_compiler/build.zig +++ b/test/standalone/c_compiler/build.zig @@ -12,15 +12,9 @@ fn isRunnableTarget(t: CrossTarget) bool { } pub fn build(b: *Builder) void { - var mode = b.standardReleaseOptions(); + const mode = b.standardReleaseOptions(); const target = b.standardTargetOptions(.{}); - if (mode != .Debug and target.getAbi().isMusl()) { - // https://github.com/ziglang/zig/issues/12828 - std.debug.print("warn: skipping musl libc++ test that regressed with LLVM 15\n", .{}); - mode = .Debug; - } - const test_step = b.step("test", "Test the program"); const exe_c = b.addExecutable("test_c", null);