macrubyc
doesn't have a good way to pass options through to gcc
. But, you can see the commands that macrubyc is using, modify them, and run them yourself. If you want to pass -mmacosx-version-min=10.6
to gcc
, here is a manual method to do it.
$ macrubyc script.rb -V
macrubyc
will AOT compile "script.rb". The -V
option will print every command executed by macrubyc
. This printed output basically shows generating the bit code, then compiling, assembling, and linking.
The 3rd command (in my experience) is where gcc compiles the native assembly file generated from the bit code. In this command is where you would inject the -mmacosx-version-min=10.6
option.