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.

63 lines
2.5 KiB

  1. #! /bin/sh
  2. # Copyright (c) 2005, 2010, Oracle and/or its affiliates.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; version 2 of the License.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
  16. # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  17. #
  18. # This program is free software; you can redistribute it and/or modify
  19. # it under the terms of the GNU General Public License as published by
  20. # the Free Software Foundation; version 2 of the License.
  21. #
  22. # This program is distributed in the hope that it will be useful,
  23. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25. # GNU General Public License for more details.
  26. #
  27. # You should have received a copy of the GNU General Public License
  28. # along with this program; if not, write to the Free Software
  29. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
  30. path=`dirname $0`
  31. . "$path/SETUP.sh"
  32. # Note that we can't use ccache with icc as the generated .deps file will
  33. # then contain wrong information
  34. CC=icc
  35. CXX=icpc
  36. export CC CXX
  37. extra_flags="$pentium_cflags $debug_cflags $valgrind_flags"
  38. # Disable following warnings as these are generated by header files:
  39. # 161 unrecognized pragma
  40. # 444 destructor for base class xxx is not virtual
  41. # 279 controlling expression is constant
  42. # 810 conversion from ulonglong to ulong with cast
  43. # 981 operands are evaluated in unspecified order
  44. # 1292 warning for unknown 'attribute' options
  45. # 1469 "xxx" clobber ignored
  46. # 1572 floating-point equality and inequality comparisons are unreliable
  47. # In C++
  48. # 869 parameter "xxx" was never referenced
  49. # (Problem with virtual functions)
  50. # 874 support for placement delete is disabled
  51. c_warnings="-Wall -Wcheck -wd161,444,279,810,981,1292,1469,1572"
  52. cxx_warnings="$c_warnings -wd869,874"
  53. base_cxxflags="-fno-exceptions"
  54. extra_configs="$pentium_configs $debug_configs $valgrind_configs"
  55. . "$path/FINISH.sh"