Your IP : 3.147.66.224
�
c��f.: � �| � d dl Z d dlmZmZmZmZmZ d dlmZm Z d dl
mZ d dlm
Z
d dlmZ G d� de� � ZdS ) � N)�DistutilsExecError�CompileError�LibError� LinkError�UnknownFileError)� CCompiler�gen_preprocess_options)�
write_file)�newer)�logc � � e Zd Z dZi ZdgZg d�Zeez ZdZdZ dZ
dxZZdZ
dd
�Z dd�Z dd
�Z dd�Zdd�Z dd�Z dd�ZdS )�BCPPCompiler�bcppz.c)z.ccz.cppz.cxxz.objz.libz.dllz%s%sz.exer c �� � t j | |||� � d| _ d| _ d| _ d | _ g d�| _ g d�| _ g d�| _ g d�| _ g | _
g d�| _ g d�| _ d S ) Nz bcc32.exezilink32.exeztlib.exe)�/tWMz/O2�/q�/g0)r z/Odr r )z/Tpd�/Gnr �/x)r r r )r r r z/r)
r �__init__�cc�linker�lib�preprocess_options�compile_options�compile_options_debug�ldflags_shared�ldflags_shared_debug�ldflags_static�ldflags_exe�ldflags_exe_debug)�self�verbose�dry_run�forces �=/opt/alt/python311/lib64/python3.11/distutils/bcppcompiler.pyr zBCPPCompiler.__init__5 s� � �
��D�'�7�E�:�:�:� ���#������"&���;�;�;���%A�%A�%A��"�9�9�9���$?�$?�$?��!� ���.�.�.���!9�!9�!9����� Nc �~ � | � ||||||� � \ }} }}
}|pg }|� d� � |r|� | j � � n|� | j � � | D �]H}
||
\ }}n# t
$ r Y �w xY wt j � |� � }t j � |
� � }
| � t j �
|
� � � � |dk r��|dk r= | � dd|
|g� � n!# t $ r}t |� � �d }~ww xY w��|| j v rd}n|| j v rd}nd}d|
z } | � | j g|z |
z ||gz |z |gz � � ��)# t $ r}t |� � �d }~ww xY w| S ) Nz-c�.res�.rc�brcc32z-fo� z-P�-o)�_setup_compile�append�extendr r �KeyError�os�path�normpath�mkpath�dirname�spawnr r �
_c_extensions�_cpp_extensionsr )r"