spicy icon indicating copy to clipboard operation
spicy copied to clipboard

Support arm64 on Linux?

Open sethhall opened this issue 3 years ago • 4 comments

https://github.com/zeek/spicy/blob/7bc152833075129ef1ddfba459021b336738b5d6/hilti/runtime/src/fiber.cc#L252

Robin and I talked about this a bit and I was thinking it could make sense to just generally support arm64. Most platforms these days seem to have their stacks grow downward anyway so it's likely that it would be fine if we just got rid of the Mac specific support here. I've been running spicy on aarch64 (arm64) Linux on a raspberry pi for a while and everything seems to be running fine.

sethhall avatar Sep 01 '21 18:09 sethhall

I think that the arm64 #if is in one more spot too, I just pointed to the first one that caused a problem.

sethhall avatar Sep 01 '21 18:09 sethhall

If we end up enabling support for this, we should try to add CI as well. It looks like Cirrus CI supports arm64 tasks, https://cirrus-ci.org/guide/linux/.

bbannier avatar Sep 02 '21 08:09 bbannier

We have merged #993 so Spicy can now be built on arm64. I will leave this issue open to track adding CI support; once that is in place we can officially support arm64.

bbannier avatar Sep 08 '21 09:09 bbannier

Looks like we can test this, too: https://github.com/cirruslabs/cirrus-ci-docs/pull/905

rsmmr avatar Oct 06 '21 09:10 rsmmr