B
    ›³ëb´  ã               @   sH   d Z dZddlZddlZddlmZ ddgZdd	„ Z	d
d„ Z
dd„ ZdS )zîSCons.Tool.aixcc

Tool-specific initialization for IBM xlc / Visual Age C compiler.

There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
z,__FILE__ __REVISION__ __DATE__ __DEVELOPER__é    Né   )Úcczvac.Cz
ibmcxx.cmpc             C   s   |   dd¡}tjj | |t¡S )NÚCCÚxlc)ÚgetÚSConsZPlatformZaixÚget_xlcÚpackages)Úenvr   © r   ú/lib/python3.7/site-packages/SCons/Tool/aixcc.pyr   +   s    r   c             C   sN   t | ƒ\}}}|r$|r$tj ||¡}d| kr4|| d< t | ¡ |rJ|| d< dS )zYAdd Builders and construction variables for xlc / Visual Age
    suite to an Environment.r   Z	CCVERSIONN)r   ÚosÚpathÚjoinr   Úgenerate)r
   r   Ú_ccÚversionr   r   r   r   /   s    
r   c             C   s8   t | ƒ\}}}|r4|r4tj ||¡}tj |¡r4|S d S )N)r   r   r   r   Úexists)r
   r   r   r   r   r   r   r   r   >   s    r   )Ú__doc__Z__revision__Úos.pathr   ZSCons.Platform.aixr   Ú r   r	   r   r   r   r   r   r   r   Ú<module>   s   