Skip to content

Commit 711c004

Browse files
committed
add the new extern test to standalone tests
This was from master branch commit c93e0d8. Since standalone test are completely reworked, I had to resolve the merge conflict later, in this commit.
1 parent 524224b commit 711c004

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/standalone.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ pub const build_cases = [_]BuildCase{
147147
.build_root = "test/standalone/embed_generated_file",
148148
.import = @import("standalone/embed_generated_file/build.zig"),
149149
},
150+
.{
151+
.build_root = "test/standalone/extern",
152+
.import = @import("standalone/extern/build.zig"),
153+
},
150154
.{
151155
.build_root = "test/standalone/dep_diamond",
152156
.import = @import("standalone/dep_diamond/build.zig"),

test/standalone/extern/build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const std = @import("std");
22

33
pub fn build(b: *std.Build) void {
4-
const optimize = b.standardOptimizeOption(.{});
4+
const optimize: std.builtin.OptimizeMode = .Debug;
55

66
const obj = b.addObject(.{
77
.name = "exports",

0 commit comments

Comments
 (0)