| author | |
| committer | |
| log | e3db2be89943333362210c1a8eb62b81c47bc1d2 |
| tree | 9072eb34d88e814f006ea6f0a8fd32cc3be0032f |
| parent | 54706dd2294d998c6c6ad91c80a23a3471677c43 |
3 files changed, 20 insertions(+), 0 deletions(-)
test/standalone.zig+1| ... | ... | @@ -19,6 +19,7 @@ pub fn addCases(cases: *tests.StandaloneContext) void { |
| 19 | 19 | cases.addBuildFile("test/standalone/use_alias/build.zig"); |
| 20 | 20 | cases.addBuildFile("test/standalone/brace_expansion/build.zig"); |
| 21 | 21 | cases.addBuildFile("test/standalone/empty_env/build.zig"); |
| 22 | cases.addBuildFile("test/standalone/issue_7030/build.zig"); | |
| 22 | 23 | if (std.Target.current.os.tag != .wasi) { |
| 23 | 24 | cases.addBuildFile("test/standalone/load_dynamic_library/build.zig"); |
| 24 | 25 | } |
test/standalone/issue_7030/build.zig created+14| ... | ... | @@ -0,0 +1,14 @@ |
| 1 | const Builder = @import("std").build.Builder; | |
| 2 | ||
| 3 | pub fn build(b: *Builder) void { | |
| 4 | const exe = b.addExecutable("issue_7030", "main.zig"); | |
| 5 | exe.setTarget(.{ | |
| 6 | .cpu_arch = .wasm32, | |
| 7 | .os_tag = .freestanding, | |
| 8 | }); | |
| 9 | exe.install(); | |
| 10 | b.default_step.dependOn(&exe.step); | |
| 11 | ||
| 12 | const test_step = b.step("test", "Test the program"); | |
| 13 | test_step.dependOn(&exe.step); | |
| 14 | } |
test/standalone/issue_7030/main.zig created+5| ... | ... | @@ -0,0 +1,5 @@ |
| 1 | const std = @import("std"); | |
| 2 | ||
| 3 | pub fn main() anyerror!void { | |
| 4 | std.log.info("All your codebase are belong to us.", .{}); | |
| 5 | } |