Frank Denis
7a87680010
x86: check if we can use an xgetbv inline asm implementation
...
This only checks whether a call to the instruction can be made,
not that a supported function ABI can be used with asm code
like HAVE_AVX_ASM does.
The former can work while the later fails (which still allows
intrinsics-based AVX code to work).
2026-08-31 07:57:47 +02:00
Frank Denis
1899e2061a
Add a build option to remove the freestanding libc
2026-08-27 10:22:25 +02:00
Frank Denis
bb1770a08f
Add support for wasm32-freestanding
2026-08-26 23:54:24 +02:00
Frank Denis
eb9519711c
Use installBinFile() to copy test exp files
2026-08-26 20:02:49 +02:00
Frank Denis
9958dc5191
Fix version.h copying for Zig 0.17+
2026-08-26 19:22:43 +02:00
Frank Denis
9450a9c28a
Temporary hack for zig 0.16/zig 0.17 compat
2026-08-26 17:44:14 +02:00
Frank Denis
701aa826b9
Update for zig-current
...
Keep compat with previous version for now
Fixes #1551
2026-07-31 17:25:40 +02:00
Frank Denis
83ee4408b7
Add a compile-time option to set the max webassembly memory
2026-06-23 18:23:10 +02:00
Frank Denis
8dd5c75499
Update for zig-current
2026-06-11 15:50:06 +02:00
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