You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3 KiB

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