2011-02-05 27 views
0

我試圖建立我的項目上的Xcode與LLVM編譯器2.0,它給這個錯誤:LLVM編譯器2.0上的-fobjc-nonfragile-abi2:未知變量?

error: unknown argument: '-fobjc-nonfragile-abi2' 

我不熟悉的LLVM編譯器,沒有任何人有一個解決方案嗎?

刪除參數並不能解決我的問題,因爲我的代碼在這種情況下有錯誤。

+0

是不是有一個NDA上的Xcode 4?至少我不得不點擊這樣的東西,然後讓他們下載它。 – JustSid 2011-02-05 19:38:20

回答

3

該選項不再需要,因爲它是LLVM最新版本中的默認設置。

1

從鐺手冊頁:

% 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