authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-13 14:43:21-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-15 10:48:15-07:00
logc5cdc0262b727e87d81fe4a92780234bf8125bd9
tree6dba208989ccb96c971dc561922b4159b0fc4ac0
parent149aa9afb7b57340c5dd7be8032b843fe439b668

add the new extern test to standalone tests

This was from master branch commit c93e0d86187cb589d6726acd36f741f3d87a96be. Since standalone test are completely reworked, I had to resolve the merge conflict later, in this commit.

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

test/standalone.zig+4
...@@ -147,6 +147,10 @@ pub const build_cases = [_]BuildCase{...@@ -147,6 +147,10 @@ pub const build_cases = [_]BuildCase{
147 .build_root = "test/standalone/embed_generated_file",147 .build_root = "test/standalone/embed_generated_file",
148 .import = @import("standalone/embed_generated_file/build.zig"),148 .import = @import("standalone/embed_generated_file/build.zig"),
149 },149 },
150 .{
151 .build_root = "test/standalone/extern",
152 .import = @import("standalone/extern/build.zig"),
153 },
150 .{154 .{
151 .build_root = "test/standalone/dep_diamond",155 .build_root = "test/standalone/dep_diamond",
152 .import = @import("standalone/dep_diamond/build.zig"),156 .import = @import("standalone/dep_diamond/build.zig"),
test/standalone/extern/build.zig+1-1
...@@ -1,7 +1,7 @@...@@ -1,7 +1,7 @@
1const std = @import("std");1const std = @import("std");
22
3pub fn build(b: *std.Build) void {3pub fn build(b: *std.Build) void {
4 const optimize = b.standardOptimizeOption(.{});4 const optimize: std.builtin.OptimizeMode = .Debug;
55
6 const obj = b.addObject(.{6 const obj = b.addObject(.{
7 .name = "exports",7 .name = "exports",