| author | |
| committer | |
| log | ee038df7e2782d336e8d7cdb8619c39d85c027bb |
| tree | 3805c019c3f31c0708c691b5673656ebe65795da |
| parent | bbe4a9fa991d1d0756323e67ed546a58d2d2be7e |
| signature |
* Make `main_tests` variable constant
* Apply same change in init-exe.zig2 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 { |
| 25 | 25 | const run_step = b.step("run", "Run the app"); |
| 26 | 26 | run_step.dependOn(&run_cmd.step); |
| 27 | 27 | |
| 28 | var exe_tests = b.addTest("src/main.zig"); | |
| 28 | const exe_tests = b.addTest("src/main.zig"); | |
| 29 | 29 | exe_tests.setBuildMode(mode); |
| 30 | 30 | |
| 31 | 31 | 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 { |
| 9 | 9 | lib.setBuildMode(mode); |
| 10 | 10 | lib.install(); |
| 11 | 11 | |
| 12 | var main_tests = b.addTest("src/main.zig"); | |
| 12 | const main_tests = b.addTest("src/main.zig"); | |
| 13 | 13 | main_tests.setBuildMode(mode); |
| 14 | 14 | |
| 15 | 15 | const test_step = b.step("test", "Run library tests"); |