JanitorTechnology / dockerfiles

popular development environments as containers
https://hub.docker.com/u/janitortechnology/
53 stars 20 forks source link

[ubuntu-dev] install clang with static-analysis headers and stuff #36

Open tbourvon opened 7 years ago

tbourvon commented 7 years ago
cd
git clone https://github.com/llvm-mirror/llvm.git
cd llvm/tools
git clone https://github.com/llvm-mirror/clang.git
cd clang/tools
git clone https://github.com/llvm-mirror/clang-tools-extra.git extra
cd ~/llvm/projects
git clone https://github.com/llvm-mirror/libcxx.git

cd
mkdir llvm-build
cd llvm-build
cmake -G "Unix Makefiles" ../llvm
make
sudo make install
jankeromnes commented 7 years ago

Thanks a lot for these instructions! We should definitely add them to our ubuntu-dev.dockerfile if they're useful for other developers as well.

Also, thanks for suggesting to build with -DCMAKE_BUILD_TYPE=Release in order to avoid Clang's Debug mode.

tbourvon commented 7 years ago

You should probably clone the release_40 branches for all the git clone as this is the version the static analysis is based on.

tbourvon commented 7 years ago

Second suggestion: we should probably use make -j<a lot> instead of make.

tbourvon commented 7 years ago

Third suggestion: the libcxx step is only for Mac and I think it should't be used for these containers, sorry about that.