1
by brian
clean slate |
1 |
#! /bin/sh
|
2 |
||
3 |
path=`dirname $0` |
|
4 |
. "$path/SETUP.sh" |
|
5 |
||
6 |
# Note that we can't use ccache with icc as the generated .deps file will
|
|
7 |
# then contain wrong information
|
|
8 |
CC=icc |
|
9 |
CXX=icpc |
|
10 |
export CC CXX
|
|
11 |
||
12 |
extra_flags="$pentium_cflags $debug_cflags $valgrind_flags" |
|
13 |
||
14 |
# Disable following warnings as these are generated by header files:
|
|
15 |
# 161 unrecognized pragma
|
|
16 |
# 444 destructor for base class xxx is not virtual
|
|
17 |
# 279 controlling expression is constant
|
|
18 |
# 810 conversion from ulonglong to ulong with cast
|
|
19 |
# 981 operands are evaluated in unspecified order
|
|
20 |
# 1292 warning for unknown 'attribute' options
|
|
21 |
# 1469 "xxx" clobber ignored
|
|
22 |
# 1572 floating-point equality and inequality comparisons are unreliable
|
|
23 |
||
24 |
# In C++
|
|
25 |
# 869 parameter "xxx" was never referenced
|
|
26 |
# (Problem with virtual functions)
|
|
27 |
# 874 support for placement delete is disabled
|
|
28 |
||
29 |
c_warnings="-Wall -Wcheck -wd161,444,279,810,981,1292,1469,1572" |
|
30 |
cxx_warnings="$c_warnings -wd869,874" |
|
31 |
base_cxxflags="-fno-exceptions -fno-rtti" |
|
32 |
extra_configs="$pentium_configs $debug_configs" |
|
33 |
||
34 |
. "$path/FINISH.sh" |