ó
{›í]c           @   sN   d  Z  d d l m Z m Z m Z d d l m Z e d „  ƒ Z d „  Z d S(   s!   
Detect the Clang++ C++ compiler
iÿÿÿÿ(   t   ccroott   art   gxx(   t   confc         C   s8   |  j  d d d ƒ} |  j | d t ƒd |  j _ d S(   sM   
	Finds the program clang++, and executes it to ensure it really is clang++
	s   clang++t   vart   CXXt   clangN(   t   find_programt   get_cc_versiont   Truet   envt   CXX_NAME(   R   t   cxx(    (    s2   /git_repos/drobillad/ingen/waflib/Tools/clangxx.pyt   find_clangxx   s    c         C   sc   |  j  ƒ  |  j d d g d d ƒ|  j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  d  S(   Ns   llvm-arR   R   t   AR(   R   R   t   find_art   gxx_common_flagst   gxx_modifier_platformt   cxx_load_toolst   cxx_add_flagst   link_add_flags(   R   (    (    s2   /git_repos/drobillad/ingen/waflib/Tools/clangxx.pyt	   configure   s    





N(	   t   __doc__t   waflib.ToolsR    R   R   t   waflib.ConfigureR   R   R   (    (    (    s2   /git_repos/drobillad/ingen/waflib/Tools/clangxx.pyt   <module>   s   	