1
我在我的Macbook上安裝了llvm4eclipsecdt。每次我用LLVM(clang)創建一個新的C++ - Projekt作爲構建環境時,我都會收到來自gcc(?)的錯誤消息。Eclipse CDT和LLVM與clang
llvm-ld -v -native -o test main.bc
Linking bitcode file 'main.bc'
Linked in file 'main.bc'
Generating Bitcode To test.bc
Generating Assembly With:
'/usr/bin/llc' '-x86-asm-syntax=att' '-o' 'test.s' 'test.bc'
Generating Native Executable With:
'/usr/bin/gcc' '-fno-strict-aliasing' '-O3' '-o' 'test' 'test.s'
test.s:28:Unknown pseudo-op: .cfi_startproc
test.s:39:Unknown pseudo-op: .cfi_endproc
llvm-ld:
Build error occurred, build is stopped
爲什麼llvm調用gcc?我無法在我的項目中找到有關GCC的任何設置。有誰知道如何解決這個問題?
它這樣做是因爲它使用llvm-ld。無論如何,它似乎太破碎了,例如默認llc的選項可能不能滿足大多數需求。 – 2012-03-27 17:04:18