Frank Denis
b81ab0783e
Update for zig-current
...
Keep compat with previous version for now
Fixes #1551
2026-07-31 17:23:45 +02:00
Frank Denis
95a428090f
Add a compile-time option to set the max webassembly memory
2026-06-23 18:22:40 +02:00
Frank Denis
3591adef1c
For translate-c, use .Debug optlevel
2026-05-31 18:49:33 +02:00
Frank Denis
63b30034a6
Update for zig-current
2026-05-27 14:01:56 +02:00
Frank Denis
10f787b53f
@cimport is no more
2026-05-02 14:20:50 +02:00
Frank Denis
caeea3fc0a
Do not strip debug builds
2026-04-08 12:06:28 +02:00
Frank Denis
b33f57b6ad
Only build test-vectors on demand
2026-04-08 09:36:22 +02:00
Frank Denis
4a6a7a010d
Add test vectors from Rooterberg and Wycheproof test suites
...
Closes #1517
2026-04-08 12:00:28 +02:00
Frank Denis
f9cc229180
Simplify zig test path
2026-03-15 17:53:44 +01:00
Frank Denis
6a79fae4cb
Update for zig 0.16
2026-03-12 18:50:01 +01:00
Frank Denis
ddcf3aba32
Use build.zig from -stable
2026-01-08 12:00:39 +01:00
Frank Denis
f01a86a607
Add a zig build test target
2026-01-05 22:22:09 +01:00
Frank Denis
2e2f42f528
build.zig: add support for FreeBSD
2026-01-03 20:11:47 +01:00
Frank Denis
be0587ff3d
Update for Zig-current
2025-12-27 16:12:48 +01:00
Frank Denis
92d7fb9657
Update for Zig-nightly
2025-12-08 15:41:34 +01:00
Frank Denis
19b1c53024
build.zig: update OpenOptions / CopyFileOptions
2025-11-18 11:46:34 +01:00
Frank Denis
800410cfe7
Generate position-independent static libraries by default
...
".pie" on a static library enables PIC when it is supported by the
target.
Fixes #1474
2025-09-12 23:00:20 +02:00
Frank Denis
def5b9d306
Add -Werror=vla
2025-08-22 12:11:40 +02:00
Frank Denis
377a6640e8
Update for Zig 0.15
2025-08-22 12:04:40 +02:00
Frank Denis
c390510484
Update for zig-current
2025-07-15 23:06:45 +02:00
Frank Denis
8ee7c45005
target.result.isWasm() -> target.result.cpu.arch.isWasm()
2025-02-20 14:53:08 +01:00
Frank Denis
091adefb44
defineCMacro -> root_module.addCMacro
2024-12-20 12:16:03 +01:00
Frank Denis
8c54312a62
Remove aarch64_32
2024-08-01 14:16:25 +02:00
Frank Denis
90c1229b05
Undefine HAVE_{AMD64,AVX}_ASM with the Windows calling convention
...
Fixes #1371
2024-05-23 15:48:56 +02:00
Frank Denis
2f003eead5
Replace .{ .path= ...} with b.path()
2024-05-09 21:28:34 +02:00
Frank Denis
36bf6ce89c
Exclude shared libraries on WebAssembly
2024-04-29 00:18:31 +02:00
Frank Denis
15eb13283b
Don't skip shared libraries for musl, but do it for android
2024-04-28 22:51:20 +02:00
Frank Denis
da0ce565d2
Use clang pragmas to enable features rather than depend on compiler settings
2024-04-27 23:05:38 +02:00
Frank Denis
fae180b7ab
Revert "Zig build: enable CPU-specific flags only on relevant files"
...
This reverts commit 9b369db0d5 .
2024-04-27 00:51:20 +02:00
Frank Denis
d3f165405f
Revert "Try changing the target for every lib"
...
This reverts commit 45ee1c31b8 .
2024-04-27 00:51:10 +02:00
Frank Denis
be7c9c2f51
Revert "Do not install CPU-specific libs"
...
This reverts commit e6b1f1c9f2 .
2024-04-27 00:50:57 +02:00
Frank Denis
e6b1f1c9f2
Do not install CPU-specific libs
2024-04-26 15:26:09 +02:00
Frank Denis
45ee1c31b8
Try changing the target for every lib
2024-04-26 15:21:10 +02:00
Frank Denis
9b369db0d5
Zig build: enable CPU-specific flags only on relevant files
...
Fixes https://github.com/jedisct1/libsodium/discussions/1358
2024-04-26 13:50:49 +02:00
Frank Denis
f8ca998c52
Update for zig-current
2024-04-08 21:16:26 +02:00
Frank Denis
3990da5802
Update for zig-master
2024-01-04 12:07:16 +01:00
Frank Denis
6d906294c9
Set .iterate = true on dirs that will be traversed
2023-11-24 14:54:56 +01:00
Frank Denis
547dde9387
Require Zig 0.12
2023-11-24 13:52:42 +01:00
Frank Denis
5dd81ad0cd
Zig: use "const" for variables that are never mutated
2023-11-20 18:58:50 +01:00
Frank Denis
6c05a64bfe
Zig 0.12 compat
2023-11-02 06:51:29 +01:00
Frank Denis
cb4d121517
Try to support both zig 0.11 and zig-master
2023-10-20 12:33:25 +02:00
Frank Denis
9ff9301465
Update for Zig-master
2023-10-16 18:07:55 +02:00
Frank Denis
ec27581dd3
build.zig: predefine some CPU features
...
Eventually, we should compile files depending on specific CPU
extensions separately, like what regular Makefiles are doing.
2023-09-11 00:07:44 +02:00
Frank Denis
0a44a9eb73
Enable more SIMD optimizations when using Zig
2023-09-09 20:38:53 +02:00
Fergus Baker
5191b40acc
Allow other zig projects to use libsodium as a dependency ( #1300 )
...
* fix(build.zig): derive cwd from builder
Using fs.cwd() only resolves the libsodium directory when building from
within libsodium. Deriving the absolute path to the libsodium directory
from the builder allows the build script to be invoked from other
projects.
* feat(build.zig): add options for building libsodium
Added the options to build either the static, shared, and/or tests. The
tests depend on the static library, and therefore imply the static
library.
* feat(build.zig): include header files
2023-09-09 00:39:15 +02:00
Frank Denis
4c8367de7f
Reorder
2023-08-05 11:08:32 +02:00
Frank Denis
22815d222c
Only create a shared library where we know it works
2023-08-05 11:07:20 +02:00
Frank Denis
1c2398fb7c
Build shared libraries again, even on Windows
2023-08-05 10:38:54 +02:00
Frank Denis
71b92ae78b
Update for zig 0.11
2023-08-03 07:41:50 +02:00
Frank Denis
004c8bee84
Define HAVE_CET_H for zig cc
2023-07-21 05:48:23 +02:00