Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Why does cquery build download clang 7 when it is already installed? #879

Open
richardxday opened this issue Jul 29, 2019 · 1 comment
Open

Comments

@richardxday
Copy link

Hi,

This is pretty frustrating to be honest, why is the build process downloading a compiler when it is already installed?

Ubuntu 19.04

The issue:
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=release -DCMAKE_EXPORT_COMPILE_COMMANDS=YES
-- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using downloaded Clang
-- Downloading Clang 7.0.0 (https://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz) ...

But clang-7 is already installed:
$ apt policy clang-7
clang-7:
Installed: 1:7.0.1-8
Candidate: 1:7.0.1-8
Version table:
*** 1:7.0.1-8 500
500 http://gb.archive.ubuntu.com/ubuntu disco/universe amd64 Packages
100 /var/lib/dpkg/status

Why can't the build process just use the installed version?

Thanks,
Richard.

@tan-wei
Copy link

tan-wei commented Dec 9, 2019

You can set SYSTEM_CLANG into ON, then it will be built with your system clang instead of clang 7 from the release page. It is hard coded in CMakeLists.txt.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants