0

最新版本的 MacRuby 是否支持静态编译?

这是尝试使用它的一些终端输出......它显示在 macrubyc 命令的选项中。

Desktop > macrubyc play_all_podcasts.rb --static -o play_all_podcasts
/usr/local/bin/macrubyc:100:in `initialize': This version of MacRuby does not support static compilation. (ArgumentError)
    from /usr/local/bin/macrubyc:490:in `<main>'
Desktop > macrubyc -v
MacRuby 0.11 (ruby 1.9.2) [universal-darwin10.0, x86_64]
Desktop > macrubyc --help
Usage: macrubyc [options] file...
    -c                               Compile and assemble, but do not link
    -o <file>                        Place the output into <file>
        --static                     Create a standalone static executable
        --framework <name>           Link standalone static executable with given framework
        --sdk <path>                 Use SDK when compiling standalone static executable
        --dylib                      Create a dynamic library
        --compatibility_version <VERSION>
                                     Compatibility Version for linking
        --current_version <VERSION>  Current Version for linking
        --install_name <NAME>        Install Name for linking
    -C                               Compile, assemble and link a loadable object file
    -a, --arch <ARCH>                Compile for specified CPU architecture
    -V, --verbose                    Print every command line executed
    -v, --version                    Display the version
    -h, --help                       Display this information
4

1 回答 1

0

从我收集到的信息来看,静态编译仍然是一项工作和进步,而且很可能甚至不会包含在 1.0 版本中。

于 2012-04-04T18:42:28.900 回答