Debian Codegraph @

BUILD/compile-pentium-icc

raw
1 #! /bin/sh
2
3 # Copyright (C) 2005 MySQL AB
4 # Use is subject to license terms
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
18
19 path=`dirname $0`
20 . "$path/SETUP.sh"
21
22 # Note that we can't use ccache with icc as the generated .deps file will
23 # then contain wrong information
24 CC=icc
25 CXX=icpc
26 CXXLD="$CXX -static-libcxa"
27 export CC CXX CXXLD
28
29 c_warnings=""
30 cxx_warnings=""
31 extra_flags="$fast_cflags -unroll2 -ip -mp -restrict"
32
33 # Use -no-ipo if you get this error
34 # IPO link: can not find "-lstdc++_shared"
35 # icpc: error: problem during multi-file optimization compilation (code 1)
36 extra_flags="$extra_flags -no-ipo"
37 base_cxxflags="-fno-exceptions"
38 extra_configs="$pentium_configs $static_link $disable_64_bit_plugins"
39
40 . "$path/FINISH.sh"