diff options
author | Marco Hinz <mh.codebro+github@gmail.com> | 2018-03-01 10:23:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-01 10:23:21 +0100 |
commit | 3d2f4154b1d5d0bb063951c830e009505bdce359 (patch) | |
tree | 3e3ae41d6839f7dc16770ff2adb9fb12782af405 /third-party/cmake/BuildLibtermkey.cmake | |
parent | ba87a2cde7795081bc1b956de0f9f978c44788fd (diff) | |
download | rneovim-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/BuildLibtermkey.cmake')
-rw-r--r-- | third-party/cmake/BuildLibtermkey.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/third-party/cmake/BuildLibtermkey.cmake b/third-party/cmake/BuildLibtermkey.cmake index 4b581c2a01..bc4db4c9b1 100644 --- a/third-party/cmake/BuildLibtermkey.cmake +++ b/third-party/cmake/BuildLibtermkey.cmake @@ -43,6 +43,7 @@ ExternalProject_Add(libtermkey PREFIX=${DEPS_INSTALL_DIR} PKG_CONFIG_PATH=${DEPS_LIB_DIR}/pkgconfig CFLAGS=-fPIC + ${DEFAULT_MAKE_CFLAGS} install) endif() |