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.

31 lines
613B

  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Nagy 2009-2010 (ita)
  4. """
  5. Detect the Clang++ 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_clangxx(conf):
  12. """
  13. Find the program clang++, and execute it to ensure it really is clang++
  14. """
  15. cxx = conf.find_program('clang++', var='CXX')
  16. conf.get_cc_version(cxx, clang=True)
  17. conf.env.CXX_NAME = 'clang'
  18. def configure(conf):
  19. conf.find_clangxx()
  20. conf.find_ar()
  21. conf.gxx_common_flags()
  22. conf.gxx_modifier_platform()
  23. conf.cxx_load_tools()
  24. conf.cxx_add_flags()
  25. conf.link_add_flags()