Skip to content

Commit 45c48fa

Browse files
committed
zig 0.14 fixes
1 parent 25d9ef1 commit 45c48fa

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

build.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ pub fn build(b: *Build) !void {
883883
} else {
884884
curl_lib.root_module.addCMacro("CURL_EXTERN_SYMBOL", "__attribute__ ((__visibility__ (\"default\"))");
885885

886-
if (target.result.isDarwin() == false) {
886+
if (target.result.os.tag.isDarwin() == false) {
887887
curl_lib.root_module.addCMacro("ENABLE_IPV6", "1");
888888
curl_lib.root_module.addCMacro("HAVE_GETHOSTBYNAME_R", "1");
889889
curl_lib.root_module.addCMacro("HAVE_MSG_NOSIGNAL", "1");

build.zig.zon

+18-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
.{
2-
.name = "orca",
2+
.name = .orca,
33

44
// This is a [Semantic Version](https://semver.org/).
55
// In a future version of Zig it will be used for package deduplication.
66
.version = "0.0.1",
77

8-
// This field is optional.
9-
// This is currently advisory only; Zig does not yet do anything
10-
// with this value.
11-
//.minimum_zig_version = "0.11.0",
8+
// Together with name, this represents a globally unique package
9+
// identifier. This field is generated by the Zig toolchain when the
10+
// package is first created, and then *never changes*. This allows
11+
// unambiguous detection of one package being an updated version of
12+
// another.
13+
//
14+
// When forking a Zig project, this id should be regenerated (delete the
15+
// field and run `zig build`) if the upstream project is still maintained.
16+
// Otherwise, the fork is *hostile*, attempting to take control over the
17+
// original project's identity. Thus it is recommended to leave the comment
18+
// on the following line intact, so that it shows up in code reviews that
19+
// modify the field.
20+
.fingerprint = 0x6111edddc2c61a9f, // Changing this has security and trust implications.
21+
22+
// Tracks the earliest Zig version that the package considers to be a
23+
// supported use case.
24+
.minimum_zig_version = "0.14.0",
1225

1326
//
1427
.dependencies = .{

0 commit comments

Comments
 (0)