From 2af13914b92df4154d8c410fd62f4baa95cd8760 Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Tue, 19 Apr 2022 21:12:19 +0000 Subject: [PATCH] llvm: use host cc --- base/llvm/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/llvm/build.sh b/base/llvm/build.sh index 00e0af0..9393888 100644 --- a/base/llvm/build.sh +++ b/base/llvm/build.sh @@ -21,13 +21,13 @@ build() { -DCMAKE_CXX_COMPILER_WORKS=ON \ -DCMAKE_SYSTEM_NAME=Linux \ -DLLVM_TABLEGEN=$(pwd)/host-build/bin/llvm-tblgen \ - -DCLANG_TABLEGEN=$(pwd)/host-build/bin/clang-tblgen \ - -DCMAKE_C_COMPILER=cc \ - -DCMAKE_CXX_COMPILER=c++" + -DCLANG_TABLEGEN=$(pwd)/host-build/bin/clang-tblgen" mkdir -p host-build cd host-build cmake -G Ninja -Wno-dev \ -DLLVM_ENABLE_PROJECTS='clang' \ + -DCMAKE_C_COMPILER=cc \ + -DCMAKE_CXX_COMPILER=c++ \ ../llvm samu llvm-tblgen clang-tblgen