authorgravatar for 59504965+InKryption@users.noreply.github.comInKryption <59504965+InKryption@users.noreply.github.com> 2021-10-29 18:37:17+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-10-29 13:37:17-04:00
logee038df7e2782d336e8d7cdb8619c39d85c027bb
tree3805c019c3f31c0708c691b5673656ebe65795da
parentbbe4a9fa991d1d0756323e67ed546a58d2d2be7e
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Make pointer variables in ( init-lib | init-exe )/build.zig const. (#10057)

* Make `main_tests` variable constant * Apply same change in init-exe.zig

2 files changed, 2 insertions(+), 2 deletions(-)

lib/std/special/init-exe/build.zig+1-1
......@@ -25,7 +25,7 @@ pub fn build(b: *std.build.Builder) void {
2525 const run_step = b.step("run", "Run the app");
2626 run_step.dependOn(&run_cmd.step);
2727
28 var exe_tests = b.addTest("src/main.zig");
28 const exe_tests = b.addTest("src/main.zig");
2929 exe_tests.setBuildMode(mode);
3030
3131 const test_step = b.step("test", "Run unit tests");
lib/std/special/init-lib/build.zig+1-1
......@@ -9,7 +9,7 @@ pub fn build(b: *std.build.Builder) void {
99 lib.setBuildMode(mode);
1010 lib.install();
1111
12 var main_tests = b.addTest("src/main.zig");
12 const main_tests = b.addTest("src/main.zig");
1313 main_tests.setBuildMode(mode);
1414
1515 const test_step = b.step("test", "Run library tests");