Skip to content

Commit

Permalink
windows: replace clang-cl to cl
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jan 17, 2025
1 parent de43fdd commit 63364af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,8 @@ pub fn ldcBuildStep(b: *Build, options: DCompileStep) !*std.Build.Step.InstallDi
ldc_exec.step.dependOn(&install.step);
ldc_exec.addArg(b.fmt("--gcc={s}", .{zcc_path}));
ldc_exec.addArg(b.fmt("--linker={s}", .{zcc_path}));
} else if (options.target.result.os.tag == .windows) {
ldc_exec.addArg("--gcc=cl"); // override default clang-cl (if available)
}

const example_run = b.addSystemCommand(&.{b.pathJoin(&.{ b.install_path, outputDir, options.name })});
Expand Down

0 comments on commit 63364af

Please sign in to comment.