Skip to content

Commit

Permalink
ldc2: remove -release flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane authored Aug 24, 2024
1 parent 6e5f765 commit ba2a1f0
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -352,22 +352,13 @@ pub fn ldcBuildStep(b: *Build, options: DCompileStep) !*RunStep {
ldc_exec.addArg("-boundscheck=on");
},
.ReleaseSafe => {
ldc_exec.addArg("-O3");
ldc_exec.addArg("-release");
ldc_exec.addArg("-enable-inlining");
ldc_exec.addArg("-boundscheck=safeonly");
ldc_exec.addArgs(&.{ "-O2", "-boundscheck=safeonly" });
},
.ReleaseFast => {
ldc_exec.addArg("-O3");
ldc_exec.addArg("-release");
ldc_exec.addArg("-enable-inlining");
ldc_exec.addArg("-boundscheck=off");
ldc_exec.addArgs(&.{ "-O3", "-boundscheck=off" });
},
.ReleaseSmall => {
ldc_exec.addArg("-Oz");
ldc_exec.addArg("-release");
ldc_exec.addArg("-enable-inlining");
ldc_exec.addArg("-boundscheck=off");
ldc_exec.addArgs(&.{ "-Oz", "-boundscheck=off" });
},
}

Expand Down

0 comments on commit ba2a1f0

Please sign in to comment.