Skip to content

Commit

Permalink
package/archlinux: include also RelWithDebInfo in the dev PKGBUILD.
Browse files Browse the repository at this point in the history
Not built by default, but handy for profiling.
  • Loading branch information
mosra committed Jan 1, 2023
1 parent 9b4a813 commit ac03515
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ build() {
mkdir -p "$_rootdir/build"
cd "$_rootdir/build"

# RelWithDebInfo is enabled but not built -- it's meant for profiling from
# within the build dir
cmake .. \
-DCMAKE_CONFIGURATION_TYPES="Debug;Release" \
-DCMAKE_CONFIGURATION_TYPES="Debug;Release;RelWithDebInfo" \
-DCMAKE_CROSS_CONFIGS=all \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g -DNDEBUG -fno-omit-frame-pointer" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAGNUM_WITH_AUDIO=ON \
-DMAGNUM_WITH_VK=ON \
Expand Down Expand Up @@ -57,7 +60,7 @@ build() {
-DMAGNUM_BUILD_GL_TESTS=ON \
-DMAGNUM_BUILD_VK_TESTS=ON \
-G "Ninja Multi-Config"
ninja all:all
ninja all:Debug all:Release
}

check() {
Expand Down

0 comments on commit ac03515

Please sign in to comment.