Anyolite / anyolite

Embedded mruby/Ruby for Crystal
https://anyolite.github.io/anyolite
MIT License
162 stars 10 forks source link

Add flag to disable automatic linking and initialization #20

Closed ahrushetskyi closed 2 years ago

ahrushetskyi commented 2 years ago

When linked to external ruby, glue files are built manually as ruby extension and passed to linker using --link-flags

Related to https://forum.crystal-lang.org/t/embeddable-interoperable-with-ruby/4894/47

Hadeweka commented 2 years ago

The Windows check is currently failing, but this is not related to the pull request.

I will try to fix this soon.

Hadeweka commented 2 years ago

Another thing: I would rather name the flag with Anyolite specifically in the name, like anyolite_use_ruby_external, anyolite_no_internal_link or something (maybe you have an even better name).

This is mainly to avoid potential clashes with flags from other libraries, just to be sure.

Hadeweka commented 2 years ago

I will accept this for now, but I will change the name of the flag as soon as I figured out a less ambiguous one.