From 00d6ea4764a6b22ad84be49cb3287de387c38be4 Mon Sep 17 00:00:00 2001 From: Sammy James Date: Sat, 27 Jul 2024 07:19:01 -0700 Subject: [PATCH] Add libcpp option to test options --- lib/std/Build.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/std/Build.zig b/lib/std/Build.zig index e2e417d178..7612ad0d6d 100644 --- a/lib/std/Build.zig +++ b/lib/std/Build.zig @@ -867,6 +867,7 @@ pub const TestOptions = struct { filters: []const []const u8 = &.{}, test_runner: ?LazyPath = null, link_libc: ?bool = null, + link_libcpp: ?bool = null, single_threaded: ?bool = null, pic: ?bool = null, strip: ?bool = null, @@ -896,6 +897,7 @@ pub fn addTest(b: *Build, options: TestOptions) *Step.Compile { .target = options.target orelse b.graph.host, .optimize = options.optimize, .link_libc = options.link_libc, + .link_libcpp = options.link_libcpp, .single_threaded = options.single_threaded, .pic = options.pic, .strip = options.strip,