Commit Graph

26 Commits

Author SHA1 Message Date
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
Frank Denis
07f9ab9020 Add Zig build system 2022-04-28 18:21:39 -07:00