Skip to content

Commit 62f2435

Browse files
committed
build: fix formatting and use --search-prefix for sysroot
1 parent 3b5dd4c commit 62f2435

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

build.zig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ pub fn build(b: *std.Build) void {
131131
);
132132
},
133133
.emscripten => {
134-
root_module.addCMacro("UV_PLATFORM_LOOP_FIELDS",
135-
"struct pollfd* poll_fds; size_t poll_fds_used; size_t poll_fds_size; unsigned char poll_fds_iterating;");
134+
root_module.addCMacro("UV_PLATFORM_LOOP_FIELDS", "struct pollfd* poll_fds; size_t poll_fds_used; size_t poll_fds_size; unsigned char poll_fds_iterating;");
136135
root_module.addCSourceFiles(.{
137136
.root = src_root,
138137
.files = emscripten_sources,
@@ -142,9 +141,6 @@ pub fn build(b: *std.Build) void {
142141
include_root.path(b, "uv/posix.h"),
143142
"uv/posix.h",
144143
);
145-
if (b.sysroot) |sysroot| {
146-
root_module.addSystemIncludePath(.{ .cwd_relative = b.pathJoin(&.{ sysroot, "include" }) });
147-
}
148144
},
149145
.haiku => {
150146
root_module.addCMacro("_BSD_SOURCE", "");

0 commit comments

Comments
 (0)