本文介绍了ld:-bundle和-bitcode_bundle不能一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建具有位码支持( -fembed-bitcode )的 llvm/clang 3.7 .某些模块由于错误而无法链接:

i'm building llvm/clang 3.7 with bitcode support (-fembed-bitcode). Some modules can't be linked due to error:

完整错误输出:

似乎CMake添加了 -bundle ,因为我无法在CMakeLists.txt中找到它,并且由于,SDK添加了 -bitcode_bundle -fembed-bitcode .

It seems that -bundle is added by CMake as i was not able to find it in CMakeLists.txt and -bitcode_bundle is added by SDK because of -fembed-bitcode.

我该如何解决?任何解决方法(例如,由于我不需要dylib,所以要关闭它们)?

How can i fix it? Any workaround (f.e. to switch off dylibs building since i don't need them)?

推荐答案

请检查您是否在任何项目中均未使用Bundle loader:并将match-O类型设置为Executable而不是Bundle

Check that you are not using Bundle loader in any of your projects:and set match-O type to Executable instead of Bundle

希望有帮助,我遇到了同样的问题,并已解决

Hope that helps, I had the same problem and fixed it

这篇关于ld:-bundle和-bitcode_bundle不能一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-23 08:12