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 {...@@ -867,6 +867,7 @@ pub const TestOptions = struct {
867 filters: []const []const u8 = &.{},867 filters: []const []const u8 = &.{},
868 test_runner: ?LazyPath = null,868 test_runner: ?LazyPath = null,
869 link_libc: ?bool = null,869 link_libc: ?bool = null,
870 link_libcpp: ?bool = null,
870 single_threaded: ?bool = null,871 single_threaded: ?bool = null,
871 pic: ?bool = null,872 pic: ?bool = null,
872 strip: ?bool = null,873 strip: ?bool = null,
...@@ -896,6 +897,7 @@ pub fn addTest(b: *Build, options: TestOptions) *Step.Compile {...@@ -896,6 +897,7 @@ pub fn addTest(b: *Build, options: TestOptions) *Step.Compile {
896 .target = options.target orelse b.graph.host,897 .target = options.target orelse b.graph.host,
897 .optimize = options.optimize,898 .optimize = options.optimize,
898 .link_libc = options.link_libc,899 .link_libc = options.link_libc,
900 .link_libcpp = options.link_libcpp,
899 .single_threaded = options.single_threaded,901 .single_threaded = options.single_threaded,
900 .pic = options.pic,902 .pic = options.pic,
901 .strip = options.strip,903 .strip = options.strip,