Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6a9c0e50
Kaydet (Commit)
6a9c0e50
authored
Eyl 30, 2013
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #12641: Avoid passing "-mno-cygwin" to the mingw32 compiler, except when necessary.
Patch by Oscar Benjamin.
üst
c8fb4fc9
3c678c33
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
cygwinccompiler.py
Lib/distutils/cygwinccompiler.py
+17
-7
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/cygwinccompiler.py
Dosyayı görüntüle @
6a9c0e50
...
...
@@ -48,13 +48,14 @@ cygwin in no-cygwin mode).
import
os
import
sys
import
copy
from
subprocess
import
Popen
,
PIPE
from
subprocess
import
Popen
,
PIPE
,
check_output
import
re
from
distutils.ccompiler
import
gen_preprocess_options
,
gen_lib_options
from
distutils.unixccompiler
import
UnixCCompiler
from
distutils.file_util
import
write_file
from
distutils.errors
import
DistutilsExecError
,
CompileError
,
UnknownFileError
from
distutils.errors
import
(
DistutilsExecError
,
CCompilerError
,
CompileError
,
UnknownFileError
)
from
distutils
import
log
from
distutils.version
import
LooseVersion
from
distutils.spawn
import
find_executable
...
...
@@ -294,11 +295,15 @@ class Mingw32CCompiler(CygwinCCompiler):
else
:
entry_point
=
''
self
.
set_executables
(
compiler
=
'gcc -mno-cygwin -O -Wall'
,
compiler_so
=
'gcc -mno-cygwin -mdll -O -Wall'
,
compiler_cxx
=
'g++ -mno-cygwin -O -Wall'
,
linker_exe
=
'gcc -mno-cygwin'
,
linker_so
=
'
%
s -mno-cygwin
%
s
%
s'
if
is_cygwingcc
():
raise
CCompilerError
(
'Cygwin gcc cannot be used with --compiler=mingw32'
)
self
.
set_executables
(
compiler
=
'gcc -O -Wall'
,
compiler_so
=
'gcc -mdll -O -Wall'
,
compiler_cxx
=
'g++ -O -Wall'
,
linker_exe
=
'gcc'
,
linker_so
=
'
%
s
%
s
%
s'
%
(
self
.
linker_dll
,
shared_option
,
entry_point
))
# Maybe we should also append -mthreads, but then the finished
...
...
@@ -393,3 +398,8 @@ def get_versions():
"""
commands
=
[
'gcc -dumpversion'
,
'ld -v'
,
'dllwrap --version'
]
return
tuple
([
_find_exe_version
(
cmd
)
for
cmd
in
commands
])
def
is_cygwingcc
():
'''Try to determine if the gcc that would be used is from cygwin.'''
out_string
=
check_output
([
'gcc'
,
'-dumpmachine'
])
return
out_string
.
strip
()
.
endswith
(
b
'cygwin'
)
Misc/ACKS
Dosyayı görüntüle @
6a9c0e50
...
...
@@ -102,6 +102,7 @@ Thomas Bellman
Alexander “Саша” Belopolsky
Eli Bendersky
David Benjamin
Oscar Benjamin
Andrew Bennetts
Andy Bensky
Bennett Benson
...
...
Misc/NEWS
Dosyayı görüntüle @
6a9c0e50
...
...
@@ -13,6 +13,9 @@ Core and Builtins
Library
-------
- Issue #12641: Avoid passing "-mno-cygwin" to the mingw32 compiler, except
when necessary. Patch by Oscar Benjamin.
- Issue #5845: In site.py, only load readline history from ~/.python_history
if no history has been read already. This avoids double writes to the
history file at shutdown.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment