首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MacRuby支持静态编译吗?

MacRuby支持静态编译吗?
EN

Stack Overflow用户
提问于 2012-04-05 02:27:10
回答 1查看 178关注 0票数 0

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

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

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-04-05 02:42:29

据我所知,静态编译仍然是一项工作和进步,很可能甚至不会包含在1.0版本中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10017129

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档