Makefile: try to install clang-tidy package explicitly

Commit 43f1389ddc ("Makefile: enable clang-tidy in presubmit tests")
added clang-tidy to only tools/docker/env/Dockerfile file. We should try to
explicitly install clang-tidy in Makefile for those who don't use docker.

  /bin/sh: 1: clang-tidy: not found
  (...snipped...)
  Makefile:250: recipe for target 'tidy' failed
  make[2]: *** [tidy] Error 127
  make[2]: *** Waiting for unfinished jobs....
  (...snipped...)
  Makefile:269: recipe for target 'presubmit_smoke' failed
  make[1]: *** [presubmit_smoke] Error 2
  Makefile:264: recipe for target 'presubmit' failed
  make: *** [presubmit] Error 2
This commit is contained in:
Tetsuo Handa 2020-08-13 10:30:05 +09:00 committed by Dmitry Vyukov
parent bc15f7dbbc
commit ee7cb8b695

View File

@ -335,6 +335,7 @@ install_prerequisites:
sudo apt-get install -y -q g++-mips64el-linux-gnuabi64 || true
sudo apt-get install -y -q g++-s390x-linux-gnu || true
sudo apt-get install -y -q g++-riscv64-linux-gnu || true
sudo apt-get install -y -q clang-tidy || true
sudo apt-get install -y -q clang clang-format ragel
GO111MODULE=off go get -u golang.org/x/tools/cmd/goyacc