LLVM编译器2.0上的-fobjc-nonfragile-abi2:未知变量?
问题描述:
我试图建立我的项目上的Xcode与LLVM编译器2.0,它给这个错误:LLVM编译器2.0上的-fobjc-nonfragile-abi2:未知变量?
error: unknown argument: '-fobjc-nonfragile-abi2'
我不熟悉的LLVM编译器,没有任何人有一个解决方案吗?
删除参数并不能解决我的问题,因为我的代码在这种情况下有错误。
答
该选项不再需要,因为它是LLVM最新版本中的默认设置。
答
从铛手册页:
% man 1 clang ... Driver Options -Xclang arg Pass arg to the clang compiler. The -Xclang flag is a LLVM driver option for “Pass argument to the clang compiler,” and the the argument here is -fobjc-nonfragile-abi2.
所以,如果你把它们以相反的顺序,编译器将使用-fobjc,非脆弱,ABI2为CFLAG,这是不是和让你在错误返回。
Looki Looki这里: http://digdog.tumblr.com/post/833744044
是不是有一个NDA上的Xcode 4?至少我不得不点击这样的东西,然后让他们下载它。 – JustSid 2011-02-05 19:38:20