From 535bd7a1c4afe5549d1fe1c22e8f36d468f3bc81 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 17 Mar 2020 18:12:36 +0100 Subject: [PATCH] CLang: compile with -fno-limit-debug-info refs #6395 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1eefc9938..2900f0aee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,8 +228,8 @@ set(CMAKE_MACOSX_RPATH 1) set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${CMAKE_INSTALL_FULL_LIBDIR}/icinga2") if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments -fcolor-diagnostics") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -fcolor-diagnostics") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments -fcolor-diagnostics -fno-limit-debug-info") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -fcolor-diagnostics -fno-limit-debug-info") # Clang on Fedora requires -pthread, Apple Clang does not # AppleClang is available since CMake 3.0.0