llvm: use host cc
This commit is contained in:
parent
069d504b0b
commit
2af13914b9
1 changed files with 3 additions and 3 deletions
|
@ -21,13 +21,13 @@ build() {
|
||||||
-DCMAKE_CXX_COMPILER_WORKS=ON \
|
-DCMAKE_CXX_COMPILER_WORKS=ON \
|
||||||
-DCMAKE_SYSTEM_NAME=Linux \
|
-DCMAKE_SYSTEM_NAME=Linux \
|
||||||
-DLLVM_TABLEGEN=$(pwd)/host-build/bin/llvm-tblgen \
|
-DLLVM_TABLEGEN=$(pwd)/host-build/bin/llvm-tblgen \
|
||||||
-DCLANG_TABLEGEN=$(pwd)/host-build/bin/clang-tblgen \
|
-DCLANG_TABLEGEN=$(pwd)/host-build/bin/clang-tblgen"
|
||||||
-DCMAKE_C_COMPILER=cc \
|
|
||||||
-DCMAKE_CXX_COMPILER=c++"
|
|
||||||
mkdir -p host-build
|
mkdir -p host-build
|
||||||
cd host-build
|
cd host-build
|
||||||
cmake -G Ninja -Wno-dev \
|
cmake -G Ninja -Wno-dev \
|
||||||
-DLLVM_ENABLE_PROJECTS='clang' \
|
-DLLVM_ENABLE_PROJECTS='clang' \
|
||||||
|
-DCMAKE_C_COMPILER=cc \
|
||||||
|
-DCMAKE_CXX_COMPILER=c++ \
|
||||||
../llvm
|
../llvm
|
||||||
|
|
||||||
samu llvm-tblgen clang-tblgen
|
samu llvm-tblgen clang-tblgen
|
||||||
|
|
Loading…
Reference in a new issue