Commit Graph

22 Commits

Author SHA1 Message Date
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
7d71804ee0 Update config.sub 2021-07-13 16:59:44 +02:00
Frank Denis
b5b62722b7 Autoconf update & regen 2021-05-22 12:21:15 +02:00
Frank Denis
dc2d459cc5 Regen autoconf 2021-03-15 11:04:51 +01:00
Frank Denis
0b443453ac Update config.* 2021-01-27 14:02:31 +01:00
Frank Denis
8ca7dce67c Update config.guess 2021-01-20 09:00:23 +01:00
Frank Denis
bfcfa87f2d Recognize linux/loongarch 2020-12-24 02:10:17 +01:00
Frank Denis
bfcaf544bf Add thumbv7* CPUs 2020-12-10 22:23:43 +01:00
Frank Denis
96c65593bc Autoconf regen 2020-11-20 22:59:37 +01:00
Frank Denis
53cdaa4f51 Update config.sub 2020-10-13 16:22:46 +02:00
Frank Denis
502de10d96 config.guess/sub update 2020-09-20 15:15:33 +02:00
Frank Denis
03b5d011a4 Update config.* to support Apple Silicon 2020-07-23 20:27:08 +02:00
Frank Denis
a43c3a6f11 config.guess, config.sub update 2020-06-28 20:58:35 +02:00
Frank Denis
89943bdd38 Update config.sub 2020-05-05 19:43:52 +02:00
Frank Denis
53ceb6c681 config.sub update 2020-04-25 12:28:15 +02:00
Frank Denis
64779327e9 update build-aux 2020-02-06 00:31:02 +01:00
Frank Denis
59e6551ecb Add support for Twizzler 2019-09-13 11:18:40 +02:00
Frank Denis
a9d6857665 Update config.sub 2019-07-24 01:07:00 +02:00
Frank Denis
611327356b Update config.guess 2019-05-28 20:42:08 +02:00
Frank Denis
6522f1047a Regen, update config.{guess, sub} 2019-05-03 11:18:55 +02:00
Frank Denis
06ee95c3f1 Regen autoconf scripts 2018-03-14 12:03:49 -07:00
Frank Denis
cd1b97d5a2 Regen autoconf files 2017-10-01 17:17:11 +02:00