From 928011dd54917e438a501f4cbab2d039be6f1093 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 30 Dec 2021 22:34:22 +0100 Subject: [PATCH] chore(cmake): record gcc switches for debugging --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6a54fa..2c6965f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,8 @@ add_subdirectory(lib/da_threading EXCLUDE_FROM_ALL) endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -grecord-gcc-switches") + # Produce debugging information in the operating system's native format. # Level 3 includes extra information, such as all the macro definitions # present in the program. Some debuggers support macro expansion when you