[llvm-dev] "Build Experimental Targets not working"

Craig Topper via llvm-dev llvm-dev at lists.llvm.org
Sun Mar 18 21:51:42 PDT 2018


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.

~Craig

On Thu, Mar 15, 2018 at 4:41 PM, Ahmed Samara via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

>  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:
>
> cmake  -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_C_COMPILER=gcc
>> -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=../install
>> -DLLVM_OPTIMIZED_TABLEGEN=On -LLVM_EXPERIMENTAL_TARGETS_TO_BUILD="RISCV"
>> -DLLVM_TARGETS_TO_BULD="RISCV" ..
>>
>
> However after completing that compilation I get this message:
>
> CMake Warning:
>>   Manually-specified variables were not used by the project:
>>     LLVM_TARGETS_TO_BULD
>
>
> And RISCV does not show up as a target in `llc --version`
>
> --
> Ahmed Samara
> M.S. Computer Engineering
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180318/3449a3cd/attachment.html>


More information about the llvm-dev mailing list