We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b84198 commit 654ac52Copy full SHA for 654ac52
1 file changed
build.zig
@@ -267,11 +267,11 @@ pub fn build(b: *std.Build) void {
267
});
268
if (char_type != .char) benchmark.root_module.addCMacro("XML_UNICODE", "1");
269
if (char_type == .wchar_t) benchmark.root_module.addCMacro("XML_UNICODE_WCHAR_T", "1");
270
- benchmark.addCSourceFile(.{
+ benchmark.root_module.addCSourceFile(.{
271
.file = upstream.path("expat/tests/benchmark/benchmark.c"),
272
.flags = if (need_short_char_arg) &.{"-fshort-wchar"} else &.{},
273
274
- benchmark.linkLibrary(expat);
+ benchmark.root_module.linkLibrary(expat);
275
276
const run_benchmark_cmd = b.addRunArtifact(benchmark);
277
if (b.args) |args| {
0 commit comments