Skip to content

Commit ac03515

Browse files
committed
package/archlinux: include also RelWithDebInfo in the dev PKGBUILD.
Not built by default, but handy for profiling.
1 parent 9b4a813 commit ac03515

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: package/archlinux/PKGBUILD

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ build() {
1818
mkdir -p "$_rootdir/build"
1919
cd "$_rootdir/build"
2020

21+
# RelWithDebInfo is enabled but not built -- it's meant for profiling from
22+
# within the build dir
2123
cmake .. \
22-
-DCMAKE_CONFIGURATION_TYPES="Debug;Release" \
24+
-DCMAKE_CONFIGURATION_TYPES="Debug;Release;RelWithDebInfo" \
2325
-DCMAKE_CROSS_CONFIGS=all \
26+
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g -DNDEBUG -fno-omit-frame-pointer" \
2427
-DCMAKE_INSTALL_PREFIX=/usr \
2528
-DMAGNUM_WITH_AUDIO=ON \
2629
-DMAGNUM_WITH_VK=ON \
@@ -57,7 +60,7 @@ build() {
5760
-DMAGNUM_BUILD_GL_TESTS=ON \
5861
-DMAGNUM_BUILD_VK_TESTS=ON \
5962
-G "Ninja Multi-Config"
60-
ninja all:all
63+
ninja all:Debug all:Release
6164
}
6265

6366
check() {

0 commit comments

Comments
 (0)