1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 02:25:14 -07:00
Commit Graph

377 Commits

Author SHA1 Message Date
Nikita Savko
3de5e505f0 Fixed xcframework build for iOS 11 and later (#1361)
* Fixed inability to create xcframework with minimal iOS deployment target newer than iOS 10.x

* Set OS_VERSION_MIN as default value for OS_SIMULATOR_VERSION_MIN
2024-04-27 23:17:25 +02:00
Frank Denis
bf4fb64457 Emscripten: export crypto_aead_aegis* in standard builds 2024-03-24 10:41:56 +01:00
小明
74fd1d4584 fixed inability to create xcframework in Symbolic Link (#1356)
Creating Clibsodium.xcframework...
error: cannot compute path of binary 'Path(str: "/private/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a")' relative to that of '/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a'
ls: /tmp/libsodium-stable/libsodium-apple/Clibsodium.xcframework: No such file or directory

ls -l /tmp
lrwxr-xr-x@ 1 root  wheel  11 12 15 22:43 /tmp -> private/tmp
2024-02-29 11:20:17 +01:00
Frank Denis
f6d0efefc3 Sync 2023-11-30 15:44:36 +01:00
Frank Denis
2945e73efd egrep -> grep -E 2023-11-23 13:36:02 +01:00
Frank Denis
0158b98bd7 Don't compile for VisionOS if Xcode doesn't support it
Drop APPLE_SILICON_SUPPORTED, since Xcode has had support for it
for ages.
2023-10-20 15:12:24 +02:00
Frank Denis
9fe76acddd Use -O3 instead of -Ofast in dist-build scripts as well 2023-10-20 12:17:09 +02:00
Frank Denis
ac6d3909eb xcframework: use proper --host= flags for Apple targets 2023-09-22 20:04:21 +02:00
Frank Denis
0a266e0a7d darwin10 -> darwin23 2023-09-22 19:52:17 +02:00
Frank Denis
d1177e2eb8 Sync build scripts with 1.0.20 2023-09-13 09:00:06 +02:00
Frank Denis
854947a4ce Add AEGIS AEADs 2023-09-13 09:00:06 +02:00
Frank Denis
c7fc4c5e92 osx.sh -> macos.sh 2023-09-13 09:00:05 +02:00
Frank Denis
ad0e68cff7 Bump 2023-09-13 09:00:05 +02:00
Frank Denis
6c35bcaabf Downgrade ax_valgrind_check 2023-09-10 22:26:31 +02:00
Frank Denis
ac14901c30 Add support for VisionOS 2023-09-09 10:56:20 +02:00
Frank Denis
3a6a6025cc Backport aarch64 support for aes256-gcm 2023-09-09 01:04:48 +02:00
Frank Denis
a77269a21b Regen 2023-09-08 22:03:03 +02:00
Frank Denis
41e93e96c0 emscripten: use different settings for wasm and js builds 2023-02-16 20:08:23 +01:00
Frank Denis
81f58a5c58 emscripten: remove pwhash_* from non-sumo builds 2023-02-16 19:36:15 +01:00
Frank Denis
b9b0c62e46 emscripten: EXTRA_EXPORTED_RUNTIME_METHODS -> EXPORTED_RUNTIME_METHODS 2023-02-16 19:21:16 +01:00
Frank Denis
6318c8c6af emscripten: setting Module.TOTAL_MEMORY doesn't do anything 2023-02-15 20:02:04 +01:00
Frank Denis
5f32a74e1a The --stack-first link option doesn't exist any more 2023-02-07 13:01:40 +01:00
Frank Denis
ab4adc2741 apple-xcframework.sh: add the ability to skip simulators 2023-01-16 13:46:55 +01:00
Frank Denis
62424f2840 wasm32-wasi.sh: match the number of iterations from build.zig 2022-12-20 08:31:27 +01:00
Frank Denis
991b56c739 generate-emscripten-symbols.sh: allows the lib path to be overridden 2022-12-09 21:15:55 +01:00
Frank Denis
3eb1b40ade Stable: check Android support in CI, too 2022-11-27 16:19:22 +01:00
Javier Navarro
e2bd402400 ios: remove the support for bitcode (#1210) 2022-09-23 17:30:34 +02:00
Elie Hage
52e9b08c79 Add support for arm64 watchOS (#1211) 2022-09-23 17:30:02 +02:00
Frank Denis
7389bf7f29 libtool update 2022-04-03 00:03:17 +02:00
Frank Denis
d6fcd7030d Catalyst: iOS 13.1 is the minimum target for Xcode 13
Fixes #1167
2022-04-03 00:02:09 +02:00
Frank Denis
c53b4cea25 Use deterministic signatures for benchmarking 2022-01-23 00:06:15 +01:00
Frank Denis
a13eef3255 wasm32-wasi: add /opt/homebrew/bin to the default paths 2022-01-22 23:36:42 +01:00
Jørgen P. Tjernø
100ccb452d Portability improvements (#1105)
* Move `raise` code to be behind an autoconf check

This moves the call to `raise` behind a `HAVE_RAISE` autoconf check,
in addition to `__wasm__`. This is intended to help porting to
other platforms that don't support `raise` (e.g. modern game consoles).

* Add autoconf check for `sysconf`

Only try to invoke `sysconf` if the target platform supports it, and
don't warn about unknown page size if `PAGE_SIZE` was defined. Add an
include for `sys/param.h` to increase likelihood of finding `PAGE_SIZE`.
This is intended to help porting to other platforms that don't support
`sysconf` (e.g. modern game consoles) that have a fixed hardware page
size.

* Don't try to use raise & sysconf in a WASI environment

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2021-10-09 18:39:02 +02:00
Frank Denis
dbb8d4ec44 No need to define the NM and STRIP commands 2021-07-19 12:52:29 +02:00
Frank Denis
4a64ce1836 WASI: remove wasi-sdk dependency; build module with zig 2021-07-19 12:36:29 +02:00
Frank Denis
b5b62722b7 Autoconf update & regen 2021-05-22 12:21:15 +02:00
Frank Denis
7168944f16 Update some autoconf definitions 2021-04-08 10:57:21 +02:00
Frank Denis
0389b96972 Regen autoconf files 2021-04-08 10:12:12 +02:00
Ryan Lester
403da0d1fc fix for asm.js async loading 2021-01-29 21:36:13 +01:00
Simon Wachter
d5115e26c8 emscripten: build with NODEJS_CATCH_REJECTION=0 (#1025)
This stops emscripten from adding a `unhandledRejection` handler on the global `process` object that forcefully exits the process.

This allows fixing jedisct1/emscripten.js#253 because we no longer need to remove these listeners to compensate after the fact.
2021-01-28 16:32:11 +01:00
Frank Denis
da41915f37 wasm-ld doesn't support --no-threads any more 2020-12-03 17:28:54 +01:00
Frank Denis
04b44a4df4 Automake update 2020-11-24 22:55:50 +01:00
Frank Denis
22758fb362 apple-xcframework: add bitcode support to all emulators 2020-11-10 16:59:37 +01:00
Frank Denis
442a23342f Build the watchOS simulators with bitcode 2020-10-21 17:00:59 +02:00
Frank Denis
3e10dcd813 emscripten: RUNNING_JS_OPTS has been removed in recent versions 2020-10-13 16:19:49 +02:00
Dan Browne
f5a4cc6337 Add tvOS support for Apple XCFramework generation. 2020-10-13 16:19:45 +02:00
Frank Denis
a95ec8a1d5 Include arm64 simulators 2020-09-21 03:12:42 +02:00
Frank Denis
0d3a991504 Shared libraries may not be buildable for Catalyst 2020-09-21 00:27:18 +02:00
Frank Denis
1510197621 Check if the compiler supports the arm64-macos target
instead of checking that this is what the host is running.

Xcode 12 may be able to compile for Apple Silicon even on Intel
platforms already.
2020-08-06 16:02:36 +02:00
Frank Denis
13b6bf4000 Bring Catalyst support back, properly forcing cross-compilation 2020-08-06 15:48:02 +02:00