我正在尝试重建启用 Bitcode 的 WebRTC iOS 框架,但它不起作用,它给了我错误。错误消息是
clang++:错误:未知参数:'-ffile-compilation-dir=。'
clang:错误:-fembed-bitcode 不支持-gdwarf-ranges
如果我在没有位码启用 true 的情况下构建它,那么它就可以工作。谁能知道为什么我会遇到这个问题?
我的Xcode版本是12.5.1
我使用llvm12在arm64 linux上构建webrtc并遇到同样的错误clang++: error: unknown argument: '-ffile-compilation-dir=.'
首先。
In the src/build/config/compiler/BUILD.gn
,有一些设置如下:
if (is_nacl) {
# TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
cflags += [
"-Xclang",
"-ffile-compilation-dir",
"-Xclang",
".",
]
} else {
# -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
# and -fcoverage-compilation-dir=.
cflags += [ "-ffile-compilation-dir=." ]
}
我替换了所有的-ffile-compilation-dir
into -fdebug-compilation-dir
然后效果很好!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)