<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [patch] Allow disabling C assertions with configure --disable-assert"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90796#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [patch] Allow disabling C assertions with configure --disable-assert"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90796">bug 90796</a>
from <span class="vcard"><a class="email" href="mailto:williambader@hotmail.com" title="William Bader <williambader@hotmail.com>"> <span class="fn">William Bader</span></a>
</span></b>
<pre>Is it worth making a --enable-build-type=XXX option that corresponds to the
cmake -DCMAKE_BUILD_TYPE=XXX options defined in PopplerMacros.cmake and sets
the same arguments?
Is there a safe way to test the compiler other than checking for gcc if $GXX =
yes?
<a href="http://stackoverflow.com/questions/3116645/default-compiler-flags-with-autotools/16672757#16672757">http://stackoverflow.com/questions/3116645/default-compiler-flags-with-autotools/16672757#16672757</a>
<a href="http://stackoverflow.com/questions/24819461/how-can-i-check-a-particular-gcc-feature-in-configure-ac">http://stackoverflow.com/questions/24819461/how-can-i-check-a-particular-gcc-feature-in-configure-ac</a>
$ grep 'set(CMAKE_.*_FLAGS_' PopplerMacros.cmake
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks
-fno-schedule-insns -fno-inline")
set(CMAKE_CXX_FLAGS_DEBUGFULL "-g3 -fno-inline")
set(CMAKE_CXX_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage
-fprofile-arcs")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_C_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks
-fno-schedule-insns -fno-inline")
set(CMAKE_C_FLAGS_DEBUGFULL "-g3 -fno-inline")
set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage
-fprofile-arcs")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-O2 -g -0b0 -noalign")
set(CMAKE_CXX_FLAGS_DEBUGFULL "-g -Ob0 -noalign")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_C_FLAGS_DEBUG "-O2 -g -Ob0 -noalign")
set(CMAKE_C_FLAGS_DEBUGFULL "-g -Ob0 -noalign")</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>