• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2
3cd $(dirname $0)/../src
4
5tmpfile=$(tempfile)
6
7CXX=${CXX:-g++}
8BOOST_ROOT=${BOOST_ROOT:-../../..}
9
10failure=0
11
12for filename in *.cpp
13do
14    set -x
15    if ! $CXX -c -O0 --std=c++11 -isystem $BOOST_ROOT $filename -o $tmpfile \
16        -pedantic -Wstrict-aliasing -fstrict-aliasing \
17        -Werror -Wall -Wextra \
18        -Wunused-parameter -Wshadow \
19        -Wfloat-equal \
20        -Wsign-promo -Wconversion -Wno-sign-conversion
21    then
22        failure=1
23    fi
24
25    set +x
26done
27
28rm $tmpfile
29exit $failure
30