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
83e9b576
Kaydet (Commit)
83e9b576
authored
Şub 03, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24421: Compile _math.c separately to avoid race condition
üst
a575839f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
Makefile.pre.in
Makefile.pre.in
+5
-1
NEWS
Misc/NEWS
+4
-0
setup.py
setup.py
+8
-4
No files found.
Makefile.pre.in
Dosyayı görüntüle @
83e9b576
...
@@ -528,11 +528,15 @@ pybuilddir.txt: $(BUILDPYTHON)
...
@@ -528,11 +528,15 @@ pybuilddir.txt: $(BUILDPYTHON)
exit
1
;
\
exit
1
;
\
fi
fi
# This is shared by the math and cmath modules
Modules/_math.o
:
Modules/_math.c Modules/_math.h
$(CC)
-c
$(CCSHARED)
$(PY_CFLAGS)
-o
$@
$<
# Build the shared modules
# Build the shared modules
# Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for
# Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for
# -s, --silent or --quiet is always the first char.
# -s, --silent or --quiet is always the first char.
# Under BSD make, MAKEFLAGS might be " -s -v x=y".
# Under BSD make, MAKEFLAGS might be " -s -v x=y".
sharedmods
:
$(BUILDPYTHON) pybuilddir.txt
sharedmods
:
$(BUILDPYTHON) pybuilddir.txt
Modules/_math.o
@
case
"
$$
MAKEFLAGS"
in
\
@
case
"
$$
MAKEFLAGS"
in
\
*
\
-s
*
|
s
*
)
quiet
=
"-q"
;;
\
*
\
-s
*
|
s
*
)
quiet
=
"-q"
;;
\
*
)
quiet
=
""
;;
\
*
)
quiet
=
""
;;
\
...
...
Misc/NEWS
Dosyayı görüntüle @
83e9b576
...
@@ -143,6 +143,10 @@ Tests
...
@@ -143,6 +143,10 @@ Tests
Build
Build
-----
-----
- Issue #24421: Compile Modules/_math.c once, before building extensions.
Previously it could fail to compile properly if the math and cmath builds
were concurrent.
- Issue #25824: Fixes sys.winver to not include any architecture suffix.
- Issue #25824: Fixes sys.winver to not include any architecture suffix.
- Issue #25348: Added ``--pgo`` and ``--pgo-job`` arguments to
- Issue #25348: Added ``--pgo`` and ``--pgo-job`` arguments to
...
...
setup.py
Dosyayı görüntüle @
83e9b576
...
@@ -584,13 +584,17 @@ class PyBuildExt(build_ext):
...
@@ -584,13 +584,17 @@ class PyBuildExt(build_ext):
# array objects
# array objects
exts
.
append
(
Extension
(
'array'
,
[
'arraymodule.c'
])
)
exts
.
append
(
Extension
(
'array'
,
[
'arraymodule.c'
])
)
shared_math
=
'Modules/_math.o'
# complex math library functions
# complex math library functions
exts
.
append
(
Extension
(
'cmath'
,
[
'cmathmodule.c'
,
'_math.c'
],
exts
.
append
(
Extension
(
'cmath'
,
[
'cmathmodule.c'
],
depends
=
[
'_math.h'
],
extra_objects
=
[
shared_math
],
depends
=
[
'_math.h'
,
shared_math
],
libraries
=
math_libs
)
)
libraries
=
math_libs
)
)
# math library functions, e.g. sin()
# math library functions, e.g. sin()
exts
.
append
(
Extension
(
'math'
,
[
'mathmodule.c'
,
'_math.c'
],
exts
.
append
(
Extension
(
'math'
,
[
'mathmodule.c'
],
depends
=
[
'_math.h'
],
extra_objects
=
[
shared_math
],
depends
=
[
'_math.h'
,
shared_math
],
libraries
=
math_libs
)
)
libraries
=
math_libs
)
)
# fast string operations implemented in C
# fast string operations implemented in C
exts
.
append
(
Extension
(
'strop'
,
[
'stropmodule.c'
])
)
exts
.
append
(
Extension
(
'strop'
,
[
'stropmodule.c'
])
)
...
...
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