How to build clang with clang?

前端 未结 2 1906
盖世英雄少女心
盖世英雄少女心 2021-02-05 16:04

I allready build clang(3.2) with MSVC and MinGW succesfully. But I think it\'s not the \"purely\" clang. So could someone give me some instructions or materials about how to use

2条回答
  •  不要未来只要你来
    2021-02-05 16:50

    The current method (as of 27th Feb 17') seems to be as follows,

    cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++  $LLVM_SRC_DIR # -G Ninja
    

    Where CMAKE_C_COMPILER and CMAKE_CXX_COMPILER are CMake variables define by -D. Somehow, these variables don't appear in llvm_src/CMakeLists.txt

提交回复
热议问题