programming-nu / nu

Nu is an interpreted Lisp that builds on the Objective-C runtime and Foundation framework.
http://programming-nu.github.io
Apache License 2.0
2.15k stars 237 forks source link

Provide an option for using libobjc2 on Linux #99

Open danielnachun opened 2 years ago

danielnachun commented 2 years ago

We've recently worked on packing nu for Linux in Homebrew: https://github.com/Homebrew/homebrew-core/pull/104928. We are using libobcj2 to provide a more modern Objective-C runtime than the one that comes with GCC. Nu builds with no issues using libobjc2, but it does require us to manually remove the -DGNU_RUNTIME=1 and -fgnu-runtime flags from the Nukefile because they are hardcoded when building on Linux.

Could a flag or environment variable be added that would allow the user to skip these flags, even if they are enabled by default? This is more convenient than having manually edit the file.