From d27ff9afd32859374b9b627c59c3db974545825b Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 24 Feb 2024 21:41:11 +0100 Subject: [PATCH] EXPERIMENT: [Python][CI] Disable generating C lines in Cython tracebacks --- python/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 54a5b99e058a5..1d6524373a733 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -722,6 +722,9 @@ endif() # Error on any warnings not already explicitly ignored. set(CYTHON_FLAGS "${CYTHON_FLAGS}" "--warning-errors") +# GH-40236: make generated C++ code easier to compile by disabling an +# undocumented Cython feature. +set(CYTHON_FLAGS "${CYTHON_FLAGS}" "--no-c-in-traceback") foreach(module ${CYTHON_EXTENSIONS}) string(REPLACE "." ";" directories ${module})