mirror of
https://github.com/python/cpython.git
synced 2025-11-27 13:45:25 +00:00
bpo-36635, bpo-36696: Fix setup.py on AIX (GH-12922)
xlc compiler doesn't support "-D define" flag only "-Ddefine".
This commit is contained in:
parent
84b4784f12
commit
574913479f
1 changed files with 3 additions and 3 deletions
6
setup.py
6
setup.py
|
|
@ -726,12 +726,12 @@ class PyBuildExt(build_ext):
|
||||||
self.add(Extension("_heapq", ["_heapqmodule.c"]))
|
self.add(Extension("_heapq", ["_heapqmodule.c"]))
|
||||||
# C-optimized pickle replacement
|
# C-optimized pickle replacement
|
||||||
self.add(Extension("_pickle", ["_pickle.c"],
|
self.add(Extension("_pickle", ["_pickle.c"],
|
||||||
extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
|
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
|
||||||
# atexit
|
# atexit
|
||||||
self.add(Extension("atexit", ["atexitmodule.c"]))
|
self.add(Extension("atexit", ["atexitmodule.c"]))
|
||||||
# _json speedups
|
# _json speedups
|
||||||
self.add(Extension("_json", ["_json.c"],
|
self.add(Extension("_json", ["_json.c"],
|
||||||
extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
|
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
|
||||||
|
|
||||||
# profiler (_lsprof is for cProfile.py)
|
# profiler (_lsprof is for cProfile.py)
|
||||||
self.add(Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']))
|
self.add(Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']))
|
||||||
|
|
@ -816,7 +816,7 @@ class PyBuildExt(build_ext):
|
||||||
|
|
||||||
# Python Internal C API test module
|
# Python Internal C API test module
|
||||||
self.add(Extension('_testinternalcapi', ['_testinternalcapi.c'],
|
self.add(Extension('_testinternalcapi', ['_testinternalcapi.c'],
|
||||||
extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
|
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
|
||||||
|
|
||||||
# Python PEP-3118 (buffer protocol) test module
|
# Python PEP-3118 (buffer protocol) test module
|
||||||
self.add(Extension('_testbuffer', ['_testbuffer.c']))
|
self.add(Extension('_testbuffer', ['_testbuffer.c']))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue