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
df9e6b81
Kaydet (Commit)
df9e6b81
authored
Eyl 17, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed to respect 'define_macros' and 'undef_macros' on Extension object.
üst
d283ce73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
build_ext.py
Lib/distutils/command/build_ext.py
+5
-1
No files found.
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
df9e6b81
...
@@ -403,6 +403,10 @@ class build_ext (Command):
...
@@ -403,6 +403,10 @@ class build_ext (Command):
# command line args. Hence we combine them in order:
# command line args. Hence we combine them in order:
extra_args
=
ext
.
extra_compile_args
or
[]
extra_args
=
ext
.
extra_compile_args
or
[]
macros
=
ext
.
define_macros
[:]
for
undef
in
ext
.
undef_macros
:
macros
.
append
((
undef
,))
# XXX and if we support CFLAGS, why not CC (compiler
# XXX and if we support CFLAGS, why not CC (compiler
# executable), CPPFLAGS (pre-processor options), and LDFLAGS
# executable), CPPFLAGS (pre-processor options), and LDFLAGS
# (linker options) too?
# (linker options) too?
...
@@ -413,7 +417,7 @@ class build_ext (Command):
...
@@ -413,7 +417,7 @@ class build_ext (Command):
objects
=
self
.
compiler
.
compile
(
sources
,
objects
=
self
.
compiler
.
compile
(
sources
,
output_dir
=
self
.
build_temp
,
output_dir
=
self
.
build_temp
,
#
macros=macros,
macros
=
macros
,
include_dirs
=
ext
.
include_dirs
,
include_dirs
=
ext
.
include_dirs
,
debug
=
self
.
debug
,
debug
=
self
.
debug
,
extra_postargs
=
extra_args
)
extra_postargs
=
extra_args
)
...
...
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