"Build Experimental Targets not working"

I tried to build LLVM to include the RISCV (experimental) target. I noticed that the instructions on the wiki were out of dat because they said to use ‘-DLLVM_TARGETS_TO_BUILD’, but this gave a warning to use LLVM_EXPERIMENTAL_TARGETS_TO_BUILD as well (or instead?).

So I compiled with these options:


However after completing that compilation I get this message:

CMake Warning:
Manually-specified variables were not used by the project:

And RISCV does not show up as a target in llc --version

The error says you misspelled LLVM_TARGETS_TO_BUILD with BULD. You also seem to be missing a D in front of LLVM_EXPERIMENTAL_TARGETS_TO_BUILD.