teal-language / tl

The compiler for Teal, a typed dialect of Lua
MIT License
2.11k stars 109 forks source link

Standalone build for macos #530

Open makspll opened 2 years ago

makspll commented 2 years ago

is there any reason for the MacOS standalone build to be missing?

hishamhm commented 2 years ago

@makspll Just that I don't have a build environment to do it!

But patches are welcome! extras/binary.sh is provided in the repo and should work as a starting point, and I guess we could use Github Actions to do it. I'd gladly take a pull request that implemented building macOS binaries.

makspll commented 2 years ago

No worries, good to know!

Once I am done with some things I am happy to take this on, in the meantime anybody is free to take this!

rosingrind commented 1 year ago

I tried to build it on Mac M1 on Ventura 13.2 and it was successful! The only fix that was needed is rcu -o -> rcu in this line of binary.sh (otherwise it throws ar: illegal option combination for -r error):

https://github.com/teal-language/tl/blob/e4639a40a414ce670b06ff724335b689ad4a4177/extras/binary.sh#L165

hishamhm commented 1 year ago

@rosingrind thank you for the feedback!

I guess the next step would be to move release asset generation to Github Actions, so we could add a macos task there.