aboutsummaryrefslogtreecommitdiff
path: root/third-party/cmake/BuildLibvterm.cmake
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro+github@gmail.com>2018-03-01 10:23:21 +0100
committerGitHub <noreply@github.com>2018-03-01 10:23:21 +0100
commit3d2f4154b1d5d0bb063951c830e009505bdce359 (patch)
tree3e3ae41d6839f7dc16770ff2adb9fb12782af405 /third-party/cmake/BuildLibvterm.cmake
parentba87a2cde7795081bc1b956de0f9f978c44788fd (diff)
downloadrneovim-3d2f4154b1d5d0bb063951c830e009505bdce359.tar.gz
rneovim-3d2f4154b1d5d0bb063951c830e009505bdce359.tar.bz2
rneovim-3d2f4154b1d5d0bb063951c830e009505bdce359.zip
third-party: build all deps with debugging symbols (#8042)
When building with CMAKE_BUILD_TYPE=Debug, the dependencies are built like this: | Dep | Defaults | Debug | |------------|-----------|---------------------------------------------| | unibilium | `-O2` | `make CFLAGS=-O0 DEBUG=1` | | msgpack | `-g -O3` | `cmake . -DCMAKE_C_FLAGS_DEBUG="-O0 -ggdb"` | | libuv | `-g -O2` | `./configure CFLAGS="-O0 -ggdb"` | | luv | `-g -O2` | `cmake . -DCMAKE_C_FLAGS_DEBUG="-O0 -ggdb"` | | libvterm | not set | `make CFLAGS=-O0 DEBUG=1` | | libtermkey | not set | `make CFLAGS=-O0 DEBUG=1` | | jemalloc | `-g3 -O3` | `./configure CFLAGS="-O0 -ggdb"` | | gperf | `-g -O2` | `./configure CXXFLAGS="-O0 -ggdb"` | | luajit | `-g -O2` | haven't checked yet | This means that only unibilium, libtermkey, and libvterm don't build with debugging symbols by default. Build them with debugging symbols and optimisations that don't hinder debugging: -Og -g
Diffstat (limited to 'third-party/cmake/BuildLibvterm.cmake')
-rw-r--r--third-party/cmake/BuildLibvterm.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/third-party/cmake/BuildLibvterm.cmake b/third-party/cmake/BuildLibvterm.cmake
index 5ea8314da5..12e8fdd7d0 100644
--- a/third-party/cmake/BuildLibvterm.cmake
+++ b/third-party/cmake/BuildLibvterm.cmake
@@ -47,9 +47,10 @@ if(WIN32)
set(LIBVTERM_INSTALL_COMMAND ${CMAKE_COMMAND} --build . --target install --config ${CMAKE_BUILD_TYPE})
else()
set(LIBVTERM_INSTALL_COMMAND ${MAKE_PRG} CC=${DEPS_C_COMPILER}
- PREFIX=${DEPS_INSTALL_DIR}
- CFLAGS=-fPIC
- install)
+ PREFIX=${DEPS_INSTALL_DIR}
+ CFLAGS=-fPIC
+ ${DEFAULT_MAKE_CFLAGS}
+ install)
endif()
BuildLibvterm(CONFIGURE_COMMAND ${LIBVTERM_CONFIGURE_COMMAND}