[PATCH] [libcxxabi] Remove strict dependency on llvm-config.

Dan Albert danalbert at google.com
Mon Aug 25 19:06:05 PDT 2014


I think you need to not specify -DCMAKE_C(XX)?_COMPILER on the second run.
Cmake doesn't let you change compiler after the first run. Even though
you're configuring it as the same compiler, it might just reject those
options on a rerun.
On Aug 25, 2014 6:20 PM, "Keno Fischer" <kfischer at college.harvard.edu>
wrote:

> It ran though fine the first time, but I tried reconfiguring and I got:
> ```
> cd libcxxabi-build && \
>         cmake -G "Unix Makefiles"
> -DCMAKE_INSTALL_PREFIX:PATH=/home/kfischer/julia-test/usr
> -DLLVM_PATH:PATH=/home/kfischer/julia-test/deps/llvm-svn
> -DCMAKE_BUILD_TYPE=Release
> -DCMAKE_INSTALL_PREFIX=/home/kfischer/julia-test/usr
> ../llvm-svn/projects/libcxxabi -DCMAKE_C_COMPILER="clang"
> -DCMAKE_CXX_COMPILER="clang++" -DLIBCXXABI_CXX_ABI_LIBRARIES=""
> -DCMAKE_CXX_FLAGS="-fno-stack-protector -cxxlib-nostd -static-intel
> -std=c++11"
> -- Configuring done
> You have changed variables that require your cache to be deleted.
> Configure will be re-run and you may have to reset some variables.
> The following variables have changed:
> CMAKE_C_COMPILER= clang
> CMAKE_CXX_COMPILER= clang++
>
> -- The C compiler identification is
> -- The CXX compiler identification is
> -- Check for working C compiler: /home/kfischer/clang/bin/clang
> -- Check for working C compiler: /home/kfischer/clang/bin/clang -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /home/kfischer/clang/bin/clang++
> -- Check for working CXX compiler: /home/kfischer/clang/bin/clang++ --
> works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> CMake Error at CMakeLists.txt:49 (message):
>   llvm-config not found and LLVM_MAIN_SRC_DIR not defined
> ``
> any ideas?
>
> http://reviews.llvm.org/D5016
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140825/d4a9f5a4/attachment.html>


More information about the cfe-commits mailing list