From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Enable debugging by default for CMake? Date: Mon, 29 Sep 2014 10:43:27 +0200 Message-ID: <87wq8mzuj4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYWYX-0002D0-Ql for guix-devel@gnu.org; Mon, 29 Sep 2014 04:43:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYWYN-0003cj-B4 for guix-devel@gnu.org; Mon, 29 Sep 2014 04:43:41 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:40944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYWYN-0003Tw-4k for guix-devel@gnu.org; Mon, 29 Sep 2014 04:43:31 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id CD28C3A00 for ; Mon, 29 Sep 2014 10:43:24 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dYSwa7PtU2f3 for ; Mon, 29 Sep 2014 10:43:24 +0200 (CEST) Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9A29D1E56 for ; Mon, 29 Sep 2014 10:43:24 +0200 (CEST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Guix-devel Apparently the default for CMake is to compile without -g, unlike what Autoconf-generated configure does. This is changed by passing =E2=80=98-DCMAKE_BUILD_TYPE=3DRelWithDebInfo=E2=80=99 as a cmake flags. Should we make it the default? Currently adding a =E2=80=9Cdebug=E2=80=9D output to a CMake package create= s a .debug file without any debugging symbols, contrary to what happens with other packages. Ludo=E2=80=99.