[Bf-blender-cvs] [8379eefafba] master: Cycles: Enable debug symbols for Clang

Omar Emara noreply at git.blender.org
Mon Nov 1 10:39:27 CET 2021


Commit: 8379eefafbaed059c210c6ba429e48bcae4cf2ab
Author: Omar Emara
Date:   Mon Nov 1 11:38:03 2021 +0200
Branches: master
https://developer.blender.org/rB8379eefafbaed059c210c6ba429e48bcae4cf2ab

Cycles: Enable debug symbols for Clang

Debug symbols were disabled for Clang at some point due to link issues.
This is no longer the case for any reasonably modern version of Clang.
So this patch removes the check in question.

Differential Revision: https://developer.blender.org/D13045

Reviewed By: brecht

===================================================================

M	intern/cycles/blender/CMakeLists.txt

===================================================================

diff --git a/intern/cycles/blender/CMakeLists.txt b/intern/cycles/blender/CMakeLists.txt
index 149967ad331..f0540486656 100644
--- a/intern/cycles/blender/CMakeLists.txt
+++ b/intern/cycles/blender/CMakeLists.txt
@@ -138,11 +138,6 @@ endif()
 
 blender_add_lib(bf_intern_cycles "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
 
-# avoid link failure with clang 3.4 debug
-if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS '3.4')
-  string(APPEND CMAKE_CXX_FLAGS_DEBUG " -gline-tables-only")
-endif()
-
 add_dependencies(bf_intern_cycles bf_rna)
 
 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${ADDON_FILES}" ${CYCLES_INSTALL_PATH})



More information about the Bf-blender-cvs mailing list