51 Commits
Author SHA1 Message Date
Frank Denis 5cc1bbafde Do not strip debug builds 2026-04-08 10:09:15 +02:00
Frank Denis bf42676035 Simplify zig test path 2026-03-15 17:50:16 +01:00
Frank Denis f59d5f6d55 Use ArrayListUnmanaged for zig 0.15.2 and 0.16 compat 2026-03-15 10:58:42 +01:00
T 70855b3290 build.zig: fix using as a dependency in other projects (#1505) 2026-01-08 07:08:56 +01:00
Frank Denis ad8860da7b Add a zig build test target 2026-01-05 22:21:59 +01:00
Frank Denis e9db97d4fb build.zig: add support for FreeBSD 2026-01-03 20:12:08 +01:00
Frank Denis c40babeece Fix Zig 0.15.x vs Zig 0.16.x cwd() definition 2025-12-29 23:24:15 +01:00
Frank Denis a8cc2d1f72 Zig 0.16 compat 2025-12-29 23:16:15 +01:00
Frank Denis 5931869bca Zig-master compat 2025-12-08 15:42:58 +01:00
Frank Denis abd59b70b3 build.zig: update OpenOptions / CopyFileOptions 2025-11-18 11:44:16 +01:00
Frank Denis 0c7d0792e7 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 14:53:43 +02:00
Frank Denis d804b3a5be Update for Zig 0.15 2025-08-22 10:27:56 +02:00
Frank Denis 330c5b1a5a target.result.isWasm() -> target.result.cpu.arch.isWasm() 2025-02-20 14:53:59 +01:00
Frank Denis 131c6e771c defineCMacro -> root_module.addCMacro 2024-12-20 12:15:38 +01:00
Frank Denis 09eb3757da Remove aarch64_32 2024-08-01 14:16:51 +02:00
Frank Denis 8b6f31f44f Refuse VLAs 2024-07-11 09:22:04 +02:00
Frank Denis e9cc216804 Undefine HAVE_{AMD64,AVX}_ASM with the Windows calling convention
Fixes #1371
2024-05-23 15:49:46 +02:00
Frank Denis 4b9ddc6b8d Replace .{ .path= ...} with b.path() 2024-05-09 22:08:08 +02:00
Frank Denis b6ed54f17f Exclude shared libraries on WebAssembly 2024-04-29 00:19:08 +02:00
Frank Denis e77588fe8f Don't skip shared libraries for musl, but do it for android 2024-04-28 22:52:05 +02:00
Frank Denis ef9ad0c041 Simplify build of .NET pakages, including Windows/arm64 2024-04-28 00:16:15 +02:00
Frank Denis bf972efda0 Use clang pragmas to enable features rather than depend on compiler settings 2024-04-27 23:18:59 +02:00
Frank Denis 6669f95b9f Zig: use "const" for variables that are never mutated 2023-11-20 18:59:15 +01:00
Frank Denis 426082ee25 Zig 0.12 compat 2023-11-02 06:51:44 +01:00
Frank Denis 5391211b5d Try to support both zig 0.11 and zig-master 2023-10-20 12:36:05 +02:00
Frank Denis d84fbc2304 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:16:19 +02:00
Frank Denis bb607f453e Enable more SIMD optimizations when using Zig 2023-09-09 20:39:16 +02:00
Frank Denis a12afb7b9d Sync build.zig with 1.0.19 and 1.0.20 2023-09-09 00:43:27 +02:00
Frank Denis 411905f83b Reorder 2023-08-05 11:08:44 +02:00
Frank Denis c298d1a8c6 Only create a shared library where we know it works 2023-08-05 11:07:50 +02:00
Frank Denis 4936130b91 Build shared libraries again, even on Windows 2023-08-05 10:38:39 +02:00
Frank Denis 2300119c4f Update for Zig 0.11 2023-08-03 22:35:07 +02:00
Frank Denis adef28f318 Define SODIUM_STATIC for Windows static builds 2023-04-27 08:24:28 +02:00
Frank Denis 0c5ac65576 build.zig don't strip in Debug mode 2023-03-01 17:05:26 +01:00
Frank Denis 135d7ef047 Remove redundant strip 2023-02-16 22:00:45 +01:00
Frank Denis abfbcab412 Use CLOCK_MONOTONIC for benchmarking, if possible 2023-02-15 19:53:33 +01:00
Frank Denis 4275023f16 On Windows, a ".LIB" file can be either shared or static
We were overwriting the static library with the shared one.
2023-01-18 23:04:24 +01:00
Frank Denis 1ff1396283 Add the ability to convert tests into benchmarks 2022-12-17 21:36:15 +01:00
Frank Denis 6aa4e8c240 Don't built shared library for WASI 2022-12-17 20:18:11 +01:00
Frank Denis 42743db558 build.zig: require at least SSE4.1 when targeting x86_64 2022-11-27 22:42:44 +01:00
Frank Denis f480b547e4 getentropy() didn't exist on old glibc versions 2022-11-27 22:02:32 +01:00
Frank Denis 284bc95456 getrandom() didn't exist on ancient glibc versions 2022-11-27 22:01:26 +01:00
Frank Denis eee31da071 Tests: disable LTO, strip 2022-11-27 21:49:13 +01:00
Frank Denis 1203bbcc4d Windows doesn't have getpid() 2022-11-27 21:27:28 +01:00
Frank Denis 8081df0b64 build.zig: define a few OS-specific feature macros 2022-11-27 21:11:18 +01:00
Frank Denis 3075417ef8 Add a simple test runner to zig-out/bin/ 2022-11-23 21:47:39 +01:00
Frank Denis 14e6867981 build.zig: statically compile and install all the tests 2022-11-23 21:47:35 +01:00
Frank Denis 35e1fdf5da Zig build: enable ARM Crypto 2022-11-13 20:51:00 +01:00
Frank Denis c33ab2d45c Update build.zig for Zig-current 2022-10-20 14:42:14 +02:00
Frank Denis 77ab3f8811 Strip builds 2022-06-07 17:36:00 +02:00