[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: koffice/krita
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2010-01-26 12:32:17
Message-ID: ae32c1ef1001260432q3cd4cb28m2ee0081ae265c879 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Btw, Cyrille, is there any way to disable optimizations? I use Debug build
and gdb usually tells me that "the value is optimized out" =(

On Tue, Jan 26, 2010 at 1:07 PM, Cyrille Berger <cyb@lepi.org> wrote:

> SVN commit 1080405 by berger:
>
> Add a build mode for krita developers with (-O2 -g, asserts, and not
> messed up when it arrives in the cache). To use it simply set KritaDevs
> to CMAKE_BUILD_TYPE.
>
> CCMAIL:kimageshop@kde.org <CCMAIL%3Akimageshop@kde.org>
>
>
>
>  M  +4 -2      CMakeLists.txt
>
>
> --- trunk/koffice/krita/CMakeLists.txt #1080404:1080405
> @@ -4,9 +4,11 @@
>  # turn on QImage as buffer for QPainter based canvas
>  add_definitions(-DINDEPENDENT_CANVAS)
>
> -if(GCC)
> +if(CMAKE_COMPILER_IS_GNUCXX)
> +    set(CMAKE_CXX_FLAGS_KRITADEVS "-O2 -g" CACHE STRING "" FORCE)
>     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-operator-names")
> -endif(GCC)
> +endif(CMAKE_COMPILER_IS_GNUCXX)
> +
>  include(CheckFunctionExists)
>
>  macro_optional_find_package(GLEW)
> _______________________________________________
> kimageshop mailing list
> kimageshop@kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>



-- 
Dmitry Kazakov

[Attachment #5 (text/html)]

Btw, Cyrille, is there any way to disable optimizations? I use Debug build and gdb \
usually tells me that &quot;the value is optimized out&quot; =(<br><br><div \
class="gmail_quote">On Tue, Jan 26, 2010 at 1:07 PM, Cyrille Berger <span \
dir="ltr">&lt;<a href="mailto:cyb@lepi.org">cyb@lepi.org</a>&gt;</span> wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">SVN commit 1080405 by berger:<br> <br>
Add a build mode for krita developers with (-O2 -g, asserts, and not<br>
messed up when it arrives in the cache). To use it simply set KritaDevs<br>
to CMAKE_BUILD_TYPE.<br>
<br>
<a href="mailto:CCMAIL%3Akimageshop@kde.org">CCMAIL:kimageshop@kde.org</a><br>
<br>
<br>
<br>
  M   +4 -2         CMakeLists.txt<br>
<br>
<br>
--- trunk/koffice/krita/CMakeLists.txt #1080404:1080405<br>
@@ -4,9 +4,11 @@<br>
  # turn on QImage as buffer for QPainter based canvas<br>
  add_definitions(-DINDEPENDENT_CANVAS)<br>
<br>
-if(GCC)<br>
+if(CMAKE_COMPILER_IS_GNUCXX)<br>
+      set(CMAKE_CXX_FLAGS_KRITADEVS &quot;-O2 -g&quot; CACHE STRING &quot;&quot; \
                FORCE)<br>
       set (CMAKE_CXX_FLAGS &quot;${CMAKE_CXX_FLAGS} -fno-operator-names&quot;)<br>
-endif(GCC)<br>
+endif(CMAKE_COMPILER_IS_GNUCXX)<br>
+<br>
  include(CheckFunctionExists)<br>
<br>
  macro_optional_find_package(GLEW)<br>
_______________________________________________<br>
kimageshop mailing list<br>
<a href="mailto:kimageshop@kde.org">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" \
target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br> \
</blockquote></div><br><br clear="all"><br>-- <br>Dmitry Kazakov<br>



_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic