ok
Direktori : /opt/alt/python311/lib64/python3.11/distutils/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/distutils/__pycache__/ccompiler.cpython-311.pyc |
� �f:� � �� � d Z ddlZddlZddlZddlT ddlmZ ddlmZ ddl m Z ddlmZ ddl mZmZ dd lmZ G d � d� � ZdZdd �Zdddddd�Zd� Zdd�Zd� Zd� ZdS )z�distutils.ccompiler Contains CCompiler, an abstract base class that defines the interface for the Distutils compiler abstraction model.� N)�*)�spawn)� move_file)�mkpath)�newer_group)�split_quoted�execute)�logc � � e Zd ZdZdZdZdZdZdZdZ dZ dZdddddd�Zg d�Z dAd �Zd � Zd� Zd� Zd � ZdBd�Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!dBd�Z"d� Z#d� Z$d � Z%d!� Z& dCd"�Z' dDd#�Z(d$� Z) dEd%�Z*d&Z+d'Z,d(Z- dFd)�Z. dFd*�Z/ dFd+�Z0 dGd,�Z1d-� Z2d.� Z3d/� Z4 dHd0�Z5dId1�Z6dJd3�Z7dJd4�Z8dJd5�Z9 dKd7�Z:dLd9�Z;d:� Z<d;� Z=dMd<�Z>d=� Z?d>� Z@dNd@�ZAdS )O� CCompilera� Abstract base class to define the interface that must be implemented by real compiler classes. Also has some utility methods used by several compiler classes. The basic idea behind a compiler abstraction class is that each instance can be used for all the compile/link steps in building a single project. Thus, attributes common to all of those compile and link steps -- include directories, macros to define, libraries to link against, etc. -- are attributes of the compiler instance. To allow for variability in how individual files are treated, most of those attributes may be varied on a per-compilation or per-link basis. N�c�c++�objc)�.cz.ccz.cppz.cxxz.m)r r r r c � � || _ || _ || _ d | _ g | _ g | _ g | _ g | _ g | _ g | _ | j � � � D ]#}| � || j | � � �$d S �N) �dry_run�force�verbose� output_dir�macros�include_dirs� libraries�library_dirs�runtime_library_dirs�objects�executables�keys�set_executable)�selfr r r �keys �:/opt/alt/python311/lib64/python3.11/distutils/ccompiler.py�__init__zCCompiler.__init__U s� � ������ ���� ��� ��� ��� ��� ��� %'��!� ����#�(�(�*�*� <� <�C�����T�%5�c�%:�;�;�;�;� <� <� c � � |D ]F}|| j vrt d|�d| j j ��� � �| � ||| � � �GdS )a� Define the executables (and options for them) that will be run to perform the various stages of compilation. The exact set of executables that may be specified here depends on the compiler class (via the 'executables' class attribute), but most will have: compiler the C/C++ compiler linker_so linker used to create shared objects and libraries linker_exe linker used to create binary executables archiver static library creator On platforms with a command-line (Unix, DOS/Windows), each of these is a string that will be split into executable name and (optional) list of arguments. (Splitting the string is done similarly to how Unix shells operate: words are delimited by spaces, but quotes and backslashes can override this. See 'distutils.util.split_quoted()'.) zunknown executable 'z' for class N)r � ValueError� __class__�__name__r )r �kwargsr! s r"