From ce49bd5a4cb4a64f125430fe06015e9d1eb644ce Mon Sep 17 00:00:00 2001 From: Matheus Cavalcante Date: Tue, 24 Oct 2023 16:20:33 -0700 Subject: [PATCH] tc-llvm: Compile LLVM with a generic gcc --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 189ce0e1..5dc34c54 100644 --- a/Makefile +++ b/Makefile @@ -81,8 +81,8 @@ tc-llvm: sw/toolchain/llvm-project cd sw/toolchain/llvm-project && mkdir -p build && cd build; \ $(CMAKE) \ -DCMAKE_INSTALL_PREFIX=$(LLVM_INSTALL_DIR) \ - -DCMAKE_CXX_COMPILER=g++-8.2.0 \ - -DCMAKE_C_COMPILER=gcc-8.2.0 \ + -DCMAKE_CXX_COMPILER=${CXX} \ + -DCMAKE_C_COMPILER=${CC} \ -DLLVM_OPTIMIZED_TABLEGEN=True \ -DLLVM_ENABLE_PROJECTS="clang;lld" \ -DLLVM_TARGETS_TO_BUILD="RISCV" \