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.

30 lines
588B

  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. # Krzysztof KosiƄski 2014
  4. """
  5. Detect the Clang C compiler
  6. """
  7. import os, sys
  8. from waflib.Tools import ccroot, ar, gcc
  9. from waflib.Configure import conf
  10. @conf
  11. def find_clang(conf):
  12. """
  13. Find the program clang and execute it to ensure it really is clang
  14. """
  15. cc = conf.find_program('clang', var='CC')
  16. conf.get_cc_version(cc, clang=True)
  17. conf.env.CC_NAME = 'clang'
  18. def configure(conf):
  19. conf.find_clang()
  20. conf.find_ar()
  21. conf.gcc_common_flags()
  22. conf.gcc_modifier_platform()
  23. conf.cc_load_tools()
  24. conf.cc_add_flags()
  25. conf.link_add_flags()