mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-21 16:41:56 +03:00
Merge branch 'freebsd-up' of https://github.com/myfreeweb/zig into freebsd2
This commit is contained in:
@@ -43,7 +43,7 @@ pub fn getAppDataDir(allocator: *mem.Allocator, appname: []const u8) GetAppDataD
|
||||
};
|
||||
return os.path.join(allocator, home_dir, "Library", "Application Support", appname);
|
||||
},
|
||||
builtin.Os.linux => {
|
||||
builtin.Os.linux, builtin.Os.freebsd => {
|
||||
const home_dir = os.getEnvPosix("HOME") orelse {
|
||||
// TODO look in /etc/passwd
|
||||
return error.AppDataDirUnavailable;
|
||||
|
||||
Reference in New Issue
Block a user