From 7ea1a7e2d1d95547ca9b411097b4a7588df8ea1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20C=2E=20Fran=C3=A7a?= Date: Sun, 7 Jan 2024 11:04:22 -0300 Subject: [PATCH] lld flags for ldc2 --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.zig b/build.zig index dde2c5c..812bf31 100644 --- a/build.zig +++ b/build.zig @@ -442,6 +442,10 @@ fn buildLDC(b: *Builder, lib: *CompileStep, config: ldcConfig) !*RunStep { // link flags if (lib.rootModuleTarget().os.tag == .linux and !config.zig_cc) try cmds.append("-L--no-as-needed"); + if (lib.rootModuleTarget().isDarwin() and !config.zig_cc) { + try cmds.append("-L-ld_classic"); + try cmds.append("-L-w"); + } // Darwin frameworks if (lib.rootModuleTarget().isDarwin()) {