Skip to content

Commit 00d6ea4

Browse files
SammyJamesandrewrk
authored andcommitted
Add libcpp option to test options
1 parent 3a0da43 commit 00d6ea4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/std/Build.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,7 @@ pub const TestOptions = struct {
867867
filters: []const []const u8 = &.{},
868868
test_runner: ?LazyPath = null,
869869
link_libc: ?bool = null,
870+
link_libcpp: ?bool = null,
870871
single_threaded: ?bool = null,
871872
pic: ?bool = null,
872873
strip: ?bool = null,
@@ -896,6 +897,7 @@ pub fn addTest(b: *Build, options: TestOptions) *Step.Compile {
896897
.target = options.target orelse b.graph.host,
897898
.optimize = options.optimize,
898899
.link_libc = options.link_libc,
900+
.link_libcpp = options.link_libcpp,
899901
.single_threaded = options.single_threaded,
900902
.pic = options.pic,
901903
.strip = options.strip,

0 commit comments

Comments
 (0)