From 676d766548a2b349fe5384a78eec6e363c663d7f Mon Sep 17 00:00:00 2001 From: Bryan Tan Date: Mon, 7 Oct 2019 16:08:44 -0700 Subject: [PATCH] For our sanity, generate release builds with debug info --- azure-pipelines/release.yml | 6 +++--- readme/LinuxBuild.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines/release.yml b/azure-pipelines/release.yml index 29e22b41..32599534 100644 --- a/azure-pipelines/release.yml +++ b/azure-pipelines/release.yml @@ -55,7 +55,7 @@ stages: steps: - template: steps/build_linux.yml parameters: - build_type: 'Release' + build_type: 'RelWithDebInfo' cmake_flags: '-DCMAKE_DEBUG_INCLUDES_LDFLAGS=ON -DENABLE_CPPUNIT=ON -DDEBUG_COMPILE=ON -DCMAKE_INSTALL_PREFIX=$PWD/staging -DCPACK_GENERATOR="TGZ;DEB"' cmake_commands: '--target package' - task: PublishPipelineArtifact@1 @@ -72,7 +72,7 @@ stages: steps: - template: steps/build_windows.yml parameters: - build_type: 'Release' + build_type: 'RelWithDebInfo' cmake_flags: '' - script: | set PATH=%PATH%;%CD:~0,2%\msys64\usr\bin;%CD:~0,2%\msys64\mingw64\bin" @@ -97,7 +97,7 @@ stages: steps: - template: steps/build_mac_native.yml parameters: - build_type: 'Release' + build_type: 'RelWithDebInfo' cmake_flags: '' - bash: | export PATH="$HOME/.local/bin:/Users/git-bin/gtk/inst/bin:$PATH" diff --git a/readme/LinuxBuild.md b/readme/LinuxBuild.md index 2dd52209..7c11d5b2 100644 --- a/readme/LinuxBuild.md +++ b/readme/LinuxBuild.md @@ -57,6 +57,7 @@ mkdir build cd build cmake .. cmake --build . +# For a faster build, set the flag -DCMAKE_BUILD_TYPE=RelWithDebInfo ``` Use `cmake-gui ..` to graphically configure compilation.