From 9ca69c51e76525e1e753588375036ea711f72df0 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Tue, 13 Jul 2021 23:20:51 +0200 Subject: zld: error out if LTO is requested targeting Darwin --- src/Compilation.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 5146e757fa..6256e2551f 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -929,7 +929,9 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { if (!use_lld and !options.target.isDarwin()) return error.LtoUnavailableWithoutLld; break :blk explicit; - } else if (!use_lld and !options.target.isDarwin()) { + } else if (!use_lld) { + // TODO zig ld LTO support + // See https://github.com/ziglang/zig/issues/8680 break :blk false; } else if (options.c_source_files.len == 0) { break :blk false; -- cgit v1.2.3