Skip to content

Commit 5732cda

Browse files
committed
skip acceler.c for 3.10
1 parent 9c77edd commit 5732cda

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmake/libpython/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,16 @@ elseif(WIN32)
6868
endif()
6969

7070
set(PARSER_COMMON_SOURCES # Equivalent to POBJS in Makefile.pre
71-
${SRC_DIR}/Parser/acceler.c
7271
${SRC_DIR}/Parser/grammar1.c
7372
${SRC_DIR}/Parser/listnode.c
7473
${SRC_DIR}/Parser/node.c
7574
${SRC_DIR}/Parser/parser.c
7675
)
76+
if (PY_VERSION VERSION_LESS_EQUAL "3.9")
77+
list(APPEND PARSER_COMMON_SOURCES
78+
${SRC_DIR}/Parser/acceler.c
79+
)
80+
endif()
7781
if(PY_VERSION VERSION_GREATER_EQUAL "3.9")
7882
list(APPEND PARSER_COMMON_SOURCES
7983
${SRC_DIR}/Parser/pegen/pegen.c

0 commit comments

Comments
 (0)