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
92385285
Kaydet (Commit)
92385285
authored
Eyl 30, 2013
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #12641: Avoid passing "-mno-cygwin" to the mingw32 compiler, except when necessary.
Patch by Oscar Benjamin.
üst
e85f4e31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
+25
-7
cygwinccompiler.py
Lib/distutils/cygwinccompiler.py
+21
-7
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/cygwinccompiler.py
Dosyayı görüntüle @
92385285
...
...
@@ -319,13 +319,18 @@ 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'
%
(
self
.
linker_dll
,
shared_option
,
entry_point
))
if
self
.
gcc_version
<
'4'
or
is_cygwingcc
():
no_cygwin
=
' -mno-cygwin'
else
:
no_cygwin
=
''
self
.
set_executables
(
compiler
=
'gcc
%
s -O -Wall'
%
no_cygwin
,
compiler_so
=
'gcc
%
s -mdll -O -Wall'
%
no_cygwin
,
compiler_cxx
=
'g++
%
s -O -Wall'
%
no_cygwin
,
linker_exe
=
'gcc
%
s'
%
no_cygwin
,
linker_so
=
'
%
s
%
s
%
s
%
s'
%
(
self
.
linker_dll
,
no_cygwin
,
shared_option
,
entry_point
))
# Maybe we should also append -mthreads, but then the finished
# dlls need another dll (mingwm10.dll see Mingw32 docs)
# (-mthreads: Support thread-safe exception handling on `Mingw32')
...
...
@@ -447,3 +452,12 @@ def get_versions():
else
:
dllwrap_version
=
None
return
(
gcc_version
,
ld_version
,
dllwrap_version
)
def
is_cygwingcc
():
'''Try to determine if the gcc that would be used is from cygwin.'''
out
=
os
.
popen
(
'gcc -dumpmachine'
,
'r'
)
out_string
=
out
.
read
()
out
.
close
()
# out_string is the target triplet cpu-vendor-os
# Cygwin's gcc sets the os to 'cygwin'
return
out_string
.
strip
()
.
endswith
(
'cygwin'
)
Misc/ACKS
Dosyayı görüntüle @
92385285
...
...
@@ -84,6 +84,7 @@ Ben Bell
Thomas Bellman
Alexander “Саша” Belopolsky
David Benjamin
Oscar Benjamin
Andrew Bennetts
Andy Bensky
Bennett Benson
...
...
Misc/NEWS
Dosyayı görüntüle @
92385285
...
...
@@ -32,6 +32,9 @@ Core and Builtins
Library
-------
- Issue #12641: Avoid passing "-mno-cygwin" to the mingw32 compiler, except
when necessary. Patch by Oscar Benjamin.
- Properly initialize all fields of a SSL object after allocation.
- Issue #4366: Fix building extensions on all platforms when --enable-shared
...
...
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