PlutoLang / Pluto

A superset of Lua 5.4 with a focus on general-purpose programming.
https://pluto-lang.org/docs/Introduction
MIT License
338 stars 20 forks source link

Fix intrinsics detection #799

Closed cattokomo closed 2 months ago

cattokomo commented 2 months ago

This commit is related to patches in the plutolang Termux, and it should be upstreamed to Pluto repository.

Sainan commented 2 months ago

I'm confused what the issue even is. Is getauxval not available on your device? I verified it compiled and ran just fine on my Pixel 5.

cattokomo commented 2 months ago

It doesn't available in target Android armv7l, it returns an undefined symbol.

Sainan commented 2 months ago

I don't think that should be the case since getauxval is an operating system API, so not tied to the CPU architecture. Is it possible that your issue is related to compiling on a 32-bit ARM CPU?

Sainan commented 2 months ago

Ah, actually I see now that HWCAP_AES et al are only defined on aarch64.

Sainan commented 2 months ago

https://github.com/calamity-inc/Soup/commit/68bdb501aee95827c476a5683ffe456fd1683f3b should probably fix this.

Really don't wanna do much 32-bit support esp. for a relatively new ISA, but I guess it just won't die.