<div dir="ltr">On 28 September 2013 19:29, Anton Smirnov <span dir="ltr"><<a href="mailto:dev@antonsmirnov.name" target="_blank">dev@antonsmirnov.name</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">asmirnov@vmb:~/llvm_cmake_build$ CC=clang<br>
<div class="gmail_extra"><div class="gmail_quote"><div>asmirnov@vmb:~/llvm_cmake_build$ CXX=clang++<br></div></div></div></div></blockquote><div><br></div><div>Oh, no, you need to set them on the CMake line itself. And you may want to export the PATH (it's not necessary, you can use the full path on the CC/CXX variables):</div>
<div><br></div><div>$ export PATH=/home/asmirnov/llvm_host_installed/bin:$PATH</div><div>$ CC=clang CXX=clang++ cmake ../llvm -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=/home/asmirnov/llvm_cmake_installed -DLLVM_TABLEGEN=/home/asmirnov/llvm_host_build/Release+Asserts/bin/llvm-tblgen -DCLANG_TABLEGEN=/home/asmirnov/llvm_host_build/Release+Asserts/bin/clang-tblgen -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS='-target armv7a-linux-gnueabihf -mcpu=cortex-a9 -I/usr/arm-linux-gnueabihf/include/c++/4.7.3/arm-linux-gnueabihf/ -I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name arm-linux-gnueabihf-gcc'</div>
<div><br></div><div>cheers,</div><div>--renato</div></div></div></div>