jack2 codebase
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.

34 lines
682B

  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Nagy 2009-2010 (ita)
  4. """
  5. Detect the Intel C++ compiler
  6. """
  7. import os, sys
  8. from waflib.Tools import ccroot, ar, gxx
  9. from waflib.Configure import conf
  10. @conf
  11. def find_icpc(conf):
  12. """
  13. Find the program icpc, and execute it to ensure it really is icpc
  14. """
  15. if sys.platform == 'cygwin':
  16. conf.fatal('The Intel compiler does not work on Cygwin')
  17. cxx = conf.find_program('icpc', var='CXX')
  18. conf.get_cc_version(cxx, icc=True)
  19. conf.env.CXX_NAME = 'icc'
  20. def configure(conf):
  21. conf.find_icpc()
  22. conf.find_ar()
  23. conf.gxx_common_flags()
  24. conf.gxx_modifier_platform()
  25. conf.cxx_load_tools()
  26. conf.cxx_add_flags()
  27. conf.link_add_flags()