Skip to content
Snippets Groups Projects
Commit c3a15514 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Fix cppcheck with ccache

parent e5dd1c32
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,13 @@ else
version=$(git tag | tail -n 1)
fi
# pick native architecture
native="$($CC -march=native -Q --help=target | grep march= | awk '{print $2}')"
# this is required so that when running the job on a different architecture ccache understand
# the object file should not be recycled
git checkout $version
make -j 4 install CFGDIR="$HOME/opt/share/cppcheck/" CXXFLAGS="-O2 -march=native -mtune=native -Wunreachable-code" PREFIX="$HOME/opt"
make -j 4 install CFGDIR="$HOME/opt/share/cppcheck/" CXXFLAGS="-O2 -march="$native" -mtune="$native" -Wunreachable-code" PREFIX="$HOME/opt"
cd ../
cppcheck --version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment