Skip to content

Commit

Permalink
lld flags for ldc2
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane authored Jan 7, 2024
1 parent 514362e commit 7ea1a7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 7ea1a7e

Please sign in to comment.