-march=c option not working

Hello,

I am trying to build llvm/clang using cmake and visual studio 2008 on windows vista. I want to convert the llvm bitcode file hello.bc into C code. I saw in the documentation that
“llc -march=c hello.bc” would convert the bitcode and generate a c code file. but it says
llc:error: invalid target “c”

could you tell me why is it not working. and what is the way to convert the bitcode file into a c file.?
Thanks

could you tell me why is it not working. and what is the way to convert the bitcode file into a c file.?
Thanks

Did you compile clang/LLVM with the C backend target enabled?

You need to add the C backend target or build all the targets with cmake.

-DLLVM_TARGETS_TO_BUILD=“X86;CBackend”
-DLLVM_TARGETS_TO_BUILD=all