File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
ddtrace/internal/datadog/profiling Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ add_library(${EXTENSION_NAME} SHARED ${CRASHTRACKER_CPP_SRC})
4646add_ddup_config(${EXTENSION_NAME} )
4747# Cython generates code that produces errors for the following, so relax compile options
4848target_compile_options (${EXTENSION_NAME} PRIVATE -Wno-old-style-cast -Wno-shadow -Wno-address)
49+ # tp_print is marked deprecated in Python 3.8, but cython still generates code using it
50+ if ("${Python3_VERSION_MINOR} " STREQUAL "8" )
51+ target_compile_options (${EXTENSION_NAME} PRIVATE -Wno-deprecated-declarations)
52+ endif ()
4953
5054# cmake may mutate the name of the library (e.g., lib- and -.so for dynamic libraries). This suppresses that behavior,
5155# which is required to ensure all paths can be inferred correctly by setup.py.
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ add_library(${EXTENSION_NAME} SHARED ${DDUP_CPP_SRC})
4949add_ddup_config(${EXTENSION_NAME} )
5050# Cython generates code that produces errors for the following, so relax compile options
5151target_compile_options (${EXTENSION_NAME} PRIVATE -Wno-old-style-cast -Wno-shadow -Wno-address)
52+ # tp_print is marked deprecated in Python 3.8, but cython still generates code using it
53+ if ("${Python3_VERSION_MINOR} " STREQUAL "8" )
54+ target_compile_options (${EXTENSION_NAME} PRIVATE -Wno-deprecated-declarations)
55+ endif ()
5256
5357# cmake may mutate the name of the library (e.g., lib- and -.so for dynamic libraries). This suppresses that behavior,
5458# which is required to ensure all paths can be inferred correctly by setup.py.
You can’t perform that action at this time.
0 commit comments