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
696B

  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. # Stian Selnes 2008
  4. # Thomas Nagy 2009-2010 (ita)
  5. """
  6. Detect the Intel C compiler
  7. """
  8. import os, sys
  9. from waflib.Tools import ccroot, ar, gcc
  10. from waflib.Configure import conf
  11. @conf
  12. def find_icc(conf):
  13. """
  14. Find the program icc and execute it to ensure it really is icc
  15. """
  16. if sys.platform == 'cygwin':
  17. conf.fatal('The Intel compiler does not work on Cygwin')
  18. cc = conf.find_program(['icc', 'ICL'], var='CC')
  19. conf.get_cc_version(cc, icc=True)
  20. conf.env.CC_NAME = 'icc'
  21. def configure(conf):
  22. conf.find_icc()
  23. conf.find_ar()
  24. conf.gcc_common_flags()
  25. conf.gcc_modifier_platform()
  26. conf.cc_load_tools()
  27. conf.cc_add_flags()
  28. conf.link_add_flags()