aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-07-13 23:20:51 +0200
committerJakub Konka <kubkon@jakubkonka.com>2021-07-15 18:49:47 +0200
commit9ca69c51e76525e1e753588375036ea711f72df0 (patch)
tree8ffc99b93a6a3287abc7d61fde5db094c8924253 /src/Compilation.zig
parente3575cdad44e63f598b557ba3142675197875906 (diff)
downloadzig-9ca69c51e76525e1e753588375036ea711f72df0.tar.gz
zig-9ca69c51e76525e1e753588375036ea711f72df0.zip
zld: error out if LTO is requested targeting Darwin
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig4
1 files changed, 3 insertions, 1 deletions
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;