Skip to content

Commit

Permalink
ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubark committed May 14, 2024
1 parent d9d4d4b commit 4dde036
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ pub fn build(b: *std.Build) !void {
fn createAllModule(b: *std.Build, build_options: *std.Build.Module, stdx: *std.Build.Module, opts: Options) !*std.Build.Module {
const mod = b.createModule(.{
.root_source_file = .{ .path = thisDir() ++ "/src/all.zig" },
.target = rtarget,
});
mod.addIncludePath(.{ .path = thisDir() ++ "/src" });
try buildAndLinkDeps(mod, build_options, stdx, opts);
Expand Down
2 changes: 1 addition & 1 deletion src/platform.zig
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ test "query each known folders" {
const path_or_null = try getPath(std.testing.allocator, @field(KnownFolder, fld.name));
if (path_or_null) |path| {
// TODO: Remove later
std.debug.print("{s} => '{s}'\n", .{ fld.name, path });
// std.debug.print("{s} => '{s}'\n", .{ fld.name, path });
std.testing.allocator.free(path);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/std/os_ffi.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1024,12 +1024,12 @@ const CFuncData = struct {

fn dlopen(path: []const u8) !std.DynLib {
if (builtin.os.tag == .linux and builtin.link_libc) {
const path_c: [*:0]const u8 = try std.posix.toPosixPath(path);
const path_c = try std.posix.toPosixPath(path);
// Place the lookup scope of the symbols in this library ahead of the global scope.
const RTLD_DEEPBIND = 0x00008;
return std.DynLib{
.inner = .{
.handle = std.c.dlopen(path_c, std.c.RTLD.LAZY | RTLD_DEEPBIND) orelse {
.handle = std.c.dlopen(&path_c, std.c.RTLD.LAZY | RTLD_DEEPBIND) orelse {
return error.FileNotFound;
},
},
Expand Down

0 comments on commit 4dde036

Please sign in to comment.