Skip to content

Commit 5749134

Browse files
authored
bpo-36635, bpo-36696: Fix setup.py on AIX (GH-12922)
xlc compiler doesn't support "-D define" flag only "-Ddefine".
1 parent 84b4784 commit 5749134

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,12 @@ def detect_simple_extensions(self):
726726
self.add(Extension("_heapq", ["_heapqmodule.c"]))
727727
# C-optimized pickle replacement
728728
self.add(Extension("_pickle", ["_pickle.c"],
729-
extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
729+
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
730730
# atexit
731731
self.add(Extension("atexit", ["atexitmodule.c"]))
732732
# _json speedups
733733
self.add(Extension("_json", ["_json.c"],
734-
extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
734+
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
735735

736736
# profiler (_lsprof is for cProfile.py)
737737
self.add(Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']))
@@ -816,7 +816,7 @@ def detect_test_extensions(self):
816816

817817
# Python Internal C API test module
818818
self.add(Extension('_testinternalcapi', ['_testinternalcapi.c'],
819-
extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
819+
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
820820

821821
# Python PEP-3118 (buffer protocol) test module
822822
self.add(Extension('_testbuffer', ['_testbuffer.c']))

0 commit comments

Comments
 (0)