<div dir="ltr">Hi,<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 9, 2014 at 1:01 AM, Alexey Samsonov <span dir="ltr"><<a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a>></span> wrote:<br>

<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">Author: samsonov<br>
Date: Fri Aug  8 17:01:20 2014<br>
New Revision: 215247<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=215247&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=215247&view=rev</a><br>
Log:<br>
[CMake] Determine which compiler-rt libraries are supported on<br>
a given platform in a top-level CMakeLists.txt to use it both<br>
in lib/ and in test/ subdirectories. Move architecture/platform<br>
checks to config-ix.<br>
<br>
Modified:<br>
    compiler-rt/trunk/CMakeLists.txt<br>
    compiler-rt/trunk/cmake/config-ix.cmake<br>
    compiler-rt/trunk/lib/CMakeLists.txt<br>
    compiler-rt/trunk/test/CMakeLists.txt<br>
    compiler-rt/trunk/test/ubsan/CMakeLists.txt<br></blockquote><div><br></div><div>Seems to break ARM build here:</div><div><br></div><div>cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -                  DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_PIC=ON -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM -    DLLVM_DEFAULT_TARGET_TRIPLE=armv7l-unknown-linux-gnueabihf -DLLVM_ENABLE_TIMESTAMPS=OFF -DCMAKE_INSTALL_PREFIX=$PWD/llvm -     DLIBCXXABI_USE_LLVM_UNWINDER=ON -DCLANG_ENABLE_ARCMT=OFF -DCLANG_ENABLE_STATIC_ANALYZER=OFF -           DENABLE_CLANG_EXAMPLES=OFF -DLLVM_BUILD_TESTS=OFF -G "Ninja" ..</div>

<div><br></div><div>results in:</div><div><br></div><div><div>CMake Error at projects/compiler-rt/lib/asan/tests/CMakeLists.txt:206 (add_library):</div><div>  Objects of target "RTLSanCommon.arm" referenced but no such target exists.</div>

<div>Call Stack (most recent call first):</div><div>  projects/compiler-rt/lib/asan/tests/CMakeLists.txt:238 (add_asan_tests_for_arch_and_kind)</div></div><div><br></div></div></div></div>