authorgravatar for sammy.james@protonmail.comSammy James <sammy.james@protonmail.com> 2024-07-27 07:19:01-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-28 20:40:53-07:00
log00d6ea4764a6b22ad84be49cb3287de387c38be4
tree4635309d2743dae143e754addfef1fc4b5d361cc
parent3a0da431dba3ba4a56fd297f9601f7c959f7d3cc

Add libcpp option to test options


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

lib/std/Build.zig+2
......@@ -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,