Skip to content
Snippets Groups Projects
Commit 629c3f06 authored by Martin Larralde's avatar Martin Larralde
Browse files

Fix some Cython extension definitions and defines in `CythonExtension.cmake`

parent be2eabf2
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,8 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug)
else()
set(CYTHON_DIRECTIVES
${CYTHON_DIRECTIVES}
-X boundscheck=True
-X wraparound=True
-X boundscheck=False
-X wraparound=False
)
endif()
......@@ -110,8 +110,10 @@ macro(cython_extension _name)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
if(NOT Python_INTERPRETER_ID STREQUAL PyPy)
target_compile_definitions(${_target} PUBLIC CYTHON_TRACE=1)
target_compile_definitions(${_target} PUBLIC CYTHON_TRACE_NOGIL=1)
endif()
else()
target_compile_definitions(${_target} PUBLIC CYTHON_WITHOUT_ASSERTIONS=1)
endif()
# Preserve the relative project structure in the install directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment