| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python3.6/distutils/__pycache__/ |
Upload File : |
3
\W: � @ sx d Z ddlZddlmZmZmZmZmZmZ ddl m
Z
mZmZ ddl
mZ ddlmZ ddlmZ G dd � d e
�ZdS )
z�distutils.bcppcompiler
Contains BorlandCCompiler, an implementation of the abstract CCompiler class
for the Borland C++ compiler.
� N)�DistutilsExecError�DistutilsPlatformError�CompileError�LibError� LinkError�UnknownFileError)� CCompiler�gen_preprocess_options�gen_lib_options)�
write_file)�newer)�logc
@ s� e Zd ZdZdZi ZdgZdddgZee ZdZ dZ
d Zd
ZZ
dZdd
d�Zddd�Zddd�Zd dd�Zd!dd�Zd"dd�Zd#dd�ZdS )$�BCPPCompilerzConcrete class that implements an interface to the Borland C/C++
compiler, as defined by the CCompiler abstract class.
Zbcppz.cz.ccz.cppz.cxxz.objz.libz.dllz%s%sz.exer c C s� t j| |||� d| _d| _d| _d | _ddddg| _ddddg| _d d
ddg| _d d
ddg| _ g | _
d
ddg| _d
dddg| _d S )
Nz bcc32.exezilink32.exeztlib.exez/tWMz/O2z/qz/g0z/Odz/Tpdz/Gnz/xz/r)
r �__init__�cc�linker�libZpreprocess_options�compile_options�compile_options_debug�ldflags_shared�ldflags_shared_debugZldflags_static�ldflags_exe�ldflags_exe_debug)�self�verboseZdry_run�force� r �$/usr/lib64/python3.6/bcppcompiler.pyr 5 s zBCPPCompiler.__init__Nc C s� | j ||||||�\}} }}
}|p$g }|jd� |rB|j| j� n|j| j� �xD| D �]:}
y||
\}}W n tk
r� wVY nX tjj|�}tjj|
�}
| j tjj
|
�� |dkr�qV|dk�ry| jdd|
|g� W qV tk
�r } zt
|��W Y d d }~X qVX qV|| jk�rd}n|| jk�r,d}nd}d|
}y,| j| jg| |
||g | |g � W qV tk
�r� } zt
|��W Y d d }~X qVX qVW | S ) Nz-cz.resz.rcZbrcc32z-fo� z-Pz-o)Z_setup_compile�append�extendr r �KeyError�os�path�normpath�mkpath�dirname�spawnr r �
_c_extensions�_cpp_extensionsr )r Zsources�
output_dir�macros�include_dirs�debug�
extra_preargs�extra_postargsZdepends�objects�pp_optsZbuildZcompile_opts�obj�src�ext�msgZ input_optZ
output_optr r r �compileQ sF
(zBCPPCompiler.compilec C s� | j ||�\}}| j||d�}| j||�r~|dg| }|r:y| j| jg| � W q� tk
rz } zt|��W Y d d }~X q�X ntjd|� d S )N)r* z/uzskipping %s (up-to-date)) �_fix_object_args�library_filename�
_need_linkr'