Skip to content

Commit 0baa556

Browse files
committed
fix zig 0.16.x compat
1 parent 0012176 commit 0baa556

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/androidbuild/tools.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,10 @@ pub fn createKeyStore(sdk: *const Sdk, options: CreateKey) KeyStore {
313313
// ignore stderr, it just gives you an output like:
314314
// "Generating 4,096 bit RSA key pair and self-signed certificate (SHA384withRSA) with a validity of 10,000 days
315315
// for: CN=example.com, OU=ID, O=Example, L=Doe, ST=Jane, C=GB"
316-
_ = keytool.captureStdErr();
316+
_ = if (builtin.zig_version.major == 0 and builtin.zig_version.minor <= 15)
317+
keytool.captureStdErr()
318+
else
319+
keytool.captureStdErr(.{});
317320
return .{
318321
.file = keystore_file,
319322
.password = options.password,

0 commit comments

Comments
 (0)